<!--回弹检测结果管控——1 -->
<template>
    <div class="department">

        <!-- 右侧 -->
        <div class="department_right">
            <div class="mechanism_nav app-container-search">
                <el-form ref="form" :model="getList" label-width="110px">
                    <el-row :gutter="20">
                        <el-col :span="6"><el-form-item label="项目名称：">
                                <el-select class="selectBhz" v-model="getList.fprojectid" placeholder="所有项目"
                                    @change="selectProject">
                                    <el-option v-for="v in projectsObj" :key="v.fItemName" :label="v.fItemName"
                                        :value="v.fItemValue">
                                    </el-option>
                                </el-select> </el-form-item></el-col>
                        <el-col :span="6"><el-form-item label="标段名称：">
                                <el-select class="selectBhz" v-model="getList.fCompanyid" placeholder="所有标段"
                                    @change="selectTender">
                                    <el-option v-for="v in tendersObj" :key="v.fItemName" :label="v.fItemName"
                                        :value="v.fItemValue">
                                    </el-option>
                                </el-select> </el-form-item></el-col>
                        <el-col :span="6"><el-form-item label="检测类型：">
                                <el-select @change="function (v) {
                                    return selectJudgetype(v);
                                }
                                    " v-model="getList.keyType" placeholder="请选择检测类型">
                                    <el-option v-for="v in Checktype" :key="v.fItemName" :label="v.fItemName" :value="v">
                                    </el-option>
                                </el-select> </el-form-item></el-col>
                        <el-col :span="6">
                            <el-form-item label="关键字查询：">
                                <el-input type="text" placeholder="请输入关键字" v-model="getList.keyWord" />
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <div class="searchBtn">
                        <el-button type="primary" :loading="editLoading" @click="yj_searchForm(getList)">查询</el-button>
                        <el-button @click="reset">重置</el-button>
                    </div>
                </el-form>
            </div>
            <div class="app-container-btn">


                <!-- <el-button type="primary" v-if="yj_view" icon="el-icon-search" size="small"
                @click="getDetail(equipmentDetailId)">查看
              </el-button> -->
                <el-button type="info" size="small" @click="engineerings(0)">
                    按检测记录新增</el-button>
                <el-button type="info" size="small" @click="engineerings(2)">选工程划分新增
                </el-button>
                <el-button type="primary" size="small" @click="engineerings(1)">编辑
                </el-button>
                <el-button type="primary" size="small" @click="SubmitText(equipmentDetailId)">提交
                </el-button>
                <el-button type="primary" size="small" @click="rowDelete(equipmentDetailId)">删除
                </el-button>
                <!-- <el-button type="primary" @click="yj_viewForm">查看</el-button> -->
                <el-button type="primary" size="small" @click="openDialog(equipmentDetailId, 4)">查看
                </el-button>
            </div>
            <!-- 顶部导航栏 -->
            <div class="mechanism_nav">
                <!-- 左侧 -->

                <!-- 右侧 -->
                <!-- <div class="print">
            <div class="printTable">
  
              <el-button type="primary" v-if="yj_view" icon="el-icon-search" size="small"
                @click="openDialog(equipmentDetailId, 4)">查看
              </el-button>
            </div>
          </div> -->
            </div>

            <div class="text_table mechanism_Table TensionRealTime">
                <el-table ref="multipleTableA" v-loading="loading" element-loading-text="拼命加载中"
                    element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.2)"
                    @row-click="getRowInfo" :data="tableData" style="width: 100%"
                    :height="navigatepageNums > 1 ? 'calc(100% - 50px)' : '100%'" stripe border highlight-current-row
                    @current-change="rowChange">
                    <el-table-column fixed type="index" label="序号" width="50" align="center">
                    </el-table-column>
                    <el-table-column prop="fProjectname" label="建设项目简称" width="170">
                        <!-- 超出鼠标滑过显示 -->
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fProjectname">{{
                                    scope.row.fProjectname
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column prop="fChecktype" label="检测类型" width="93">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fChecktype">{{
                                    scope.row.fChecktype
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>

                    <el-table-column prop="fCheckcompanyname" label="检测单位" width="120">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fLeadercompanyname">{{
                                    scope.row.fLeadercompanyname
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>

                    <el-table-column prop="fClientname" label="施工/委托单位" width="120">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fCompanyname">{{
                                    scope.row.fCompanyname
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column prop="fReportno" align="center" label="报告编号" width="170">
                        <template slot-scope="scope">
                            <el-button @click="openDialog(scope.row)" @cell-dblclick="openDialog" type="text" size="small"
                                style="padding: 0 !important; margin: 0">
                                {{ scope.row.fReportno }}
                            </el-button>
                        </template>
                    </el-table-column>
                    <el-table-column prop="fFactoryname" align="center" label="报告日期" width="90">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fReportdates">{{
                                    scope.row.fReportdates
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column prop="fSamplenumber" label="样品编号" width="160" align="center">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fSamplingno">{{
                                    scope.row.fSamplingno
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column prop="fRecordnumber" label="记录编号" width="160" align="center">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fMarkno">{{
                                    scope.row.fMarkno
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column prop="fOutdates" label="工程部位/用途" width="100" align="center">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fProjecttypename">{{
                                    scope.row.fProjecttypename
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column prop="fCheckdates" label="试验检测日期" width="90" align="center">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fTestdates">{{
                                    scope.row.fTestdates
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column prop="fCheckreference" label="检测依据" width="120" align="center">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fTestnote">{{
                                    scope.row.fTestnote
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column prop="fDecidereference" label="判定依据" width="120" align="center">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fJudgetype">{{
                                    scope.row.fJudgetype
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column prop="fCreateusername" label="记录人" width="60" align="center">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fCreateusername">{{
                                    scope.row.fCreateusername
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column label="记录表" width="60" align="center">
                        <template slot-scope="scope">
                            <el-button @click="openDialogs(scope.row, 1)" @cell-dblclick="openDialogs" type="text"
                                size="small" style="padding: 0 !important; margin: 0">
                                记录表
                            </el-button>
                        </template>
                    </el-table-column>
                    <el-table-column prop="fNote" label="报告" width="50">
                        <template slot-scope="scope">
                            <el-button @click="openDialogs(scope.row, 2)" @cell-dblclick="openDialogs" type="text"
                                size="small" style="padding: 0 !important; margin: 0">
                                报告
                            </el-button>
                        </template>
                    </el-table-column>

                    <el-table-column prop="fDecidereference" label="信息状态" width="80" align="center">
                        <template slot-scope="scope">
                            <div class="lineBoxhidden">
                                <a href="javascript:;" :title="scope.row.fStatus">{{
                                    scope.row.fStatus
                                }}</a>
                            </div>
                        </template>
                    </el-table-column>
                </el-table>
                <pagination :info="queryCriteriaData" :total="queryCriteriaData.total" :pageNum.sync="getList.page"
                    :limit.sync="getList.pageSize" @pagination="yj_searchForm(getList)" />

            </div>
            <!-- 按工程划分新增 -->
            <div class="Control-1 mechanism_dialog ghgh">
                <el-dialog :close-on-click-modal="false" title="标段工程划分" 
                    :visible.sync="dialogTableVisibleDivide" v-loading="loadingDialogDivide" element-loading-text="拼命加载中"
                    element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.2)">
                    <div class="dialogBody common" :style="{ height: dialogHeight }" style="overflow: hidden !important">
                        <!-- 工程划分列表 -->
                        <div class="text_table" style="overflow: auto">
                            <el-table @row-click="getRowInfos" ref="multipleTable" height="300" :data="tableData5"
                                style="width: 100%" border default-expand-all :tree-props="{
                                    children: 'children',
                                    hasChildren: 'hasChildren',
                                }" row-key="f_CompanyId" v-loading="loadings" element-loading-text="拼命加载中"
                                element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.2)"
                                highlight-current-row @current-change="rowChange" stripe>
                                <el-table-column fixed type="index" label="序号" width="50" align="center">
                                    <!-- <template slot-scope="scope">{{scope.$index+1}}</template> -->
                                </el-table-column>
                                <el-table-column prop="f_CompanyId" label="工程编号" width="190"></el-table-column>
                                <el-table-column prop="f_FullName" label="工程名称"></el-table-column>
                                <el-table-column prop="f_Nature" label="工程类别" width="100" align="center">
                                </el-table-column>
                                <el-table-column prop="f_Note" label="强度设计值" width="100" align="center">
                                </el-table-column>
                                <template slot="empty">
                                    <img style="width: 285px; height: 208px" src="@/assets/img/undata.png" alt="" />
                                    <div class="pageFlagText">暂时没有数据哦！</div>
                                </template>
                            </el-table>
                        </div>

                        <div style="height: 40px">
                            <div style="position: absolute; right: 5px; bottom: 0">
                                <el-button type="primary" @click="submit(0)">保存</el-button>
                                <el-button type="warning" @click="resetForms()">关闭</el-button>
                            </div>
                        </div>
                    </div>
                </el-dialog>
            </div>
            <!-- 按检测记录新增/编辑 -->
            <div class="steelSheet Control-1">
                <el-dialog :close-on-click-modal="false" :title="dialogText"  :visible.sync="dialogTableVisible"
                    v-loading="loadingDialog" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading"
                    element-loading-background="rgba(0, 0, 0, 0.2)">
                    <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
                        <el-menu-item index="1">混凝土回弹检测记录表</el-menu-item>
                        <el-menu-item index="2">混凝土回弹检测报告</el-menu-item>
                    </el-menu>
                    <div v-show="activeIndex == 1" class="dialogBody common" :style="{ height: dialogHeights }">
                        <header>
                            现场混凝土强度检测记录表(回弹法)
                            <div class="printTable" v-if="flagNum != 0">
                                <el-button type="primary" icon="el-icon-printer" size="small" @click="Print(1)">打印表格
                                </el-button>
                            </div>
                        </header>

                        <div class="top_box top_1" style="border-bottom: 1px solid #ccc" id="checkForm1">
                            <div class="bottom1_1" style="background: #f5f7fa">
                                检测类型
                                <i v-if="flagNum == 0" class="iconfont icon-must-fill2" style="color: red; width: 5px"></i>
                            </div>
                            <div class="bottom1_2" ref="fChecktype">
                                <el-select :disabled="disabl" v-model="formData.fChecktype" placeholder="请选择" @change="function (item) {
                                    return handleChangeSelectId(item);
                                }
                                    ">
                                    <el-option v-for="(v, i) in Checktype" :key="i" :label="v.fItemName" :value="v">
                                    </el-option>
                                </el-select>
                            </div>
                        </div>
                        <!-- 头部 -->
                        <div class="title">
                            <div class="title_Name title_record">
                                <div class="title_input_text">检测单位名称：</div>
                                <div class="title_input_con" v-text="formData.fLeadercompanyfullname"></div>
                            </div>
                            <div class="title_input">
                                <div class="title_input_text">记录编号：</div>
                                <div class="title_input_con">{{ formData.fMarkno }}</div>
                                <!-- <div class="title_input_con"  >{{fMarkno}}</div> -->
                            </div>
                        </div>
                        <!-- 工程名称 -->
                        <div class="top_box top_1">
                            <div class="bottom1_1" style="background: #f5f7fa">工程名称</div>
                            <div class="bottom1_2">
                                <el-input disabled v-model="formData.fProjectfullname" placeholder="/"></el-input>
                            </div>
                        </div>
                        <!-- @change="function(item){ return TestnoteSelectId(item)}" -->
                        <!-- 工程部位/用途 -->
                        <div class="top_box top_1">
                            <div class="bottom1_1">
                                工程部位/用途
                                <i v-if="flagNum == 0" class="iconfont icon-must-fill2" style="color: red; width: 5px"></i>
                            </div>

                            <div class="bottom1_2" ref="fProjecttypename" @click="changeProject">
                                <el-input disabled v-model="formData.fProjecttypename" placeholder="/"></el-input>
                            </div>
                        </div>

                        <!-- 样品信息 -->
                        <div class="top_box top_1">
                            <div class="bottom1_1">
                                样品信息
                                <i v-if="flagNum == 0" class="iconfont icon-must-fill2" style="color: red; width: 5px"></i>
                            </div>
                            <div class="bottom1_2" ref="fSamplename" @click="sampleDetails()"
                                style="background-color: #f5f7fa">
                                <el-input v-model="sample" placeholder="/" disabled></el-input>
                            </div>
                        </div>
                        <!--  -->
                        <!-- 试验检测日期 -->
                        <div class="top_box top_1">
                            <div class="top_4">
                                <div class="bottom1_1">试验检测日期</div>
                                <div class="bottom1_2" ref="fTestdates">
                                    <el-date-picker :disabled="disabl" v-model="formData.fTestdates" format="yyyy/MM/dd"
                                        value-format="yyyy-MM-dd" type="date" placeholder="选择日期">
                                    </el-date-picker>
                                </div>
                            </div>
                            <div class="top_4">
                                <div class="bottom1_1" style="border-left: 1px solid #ccc">
                                    试验条件
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2" ref="fTesttype">
                                    <el-input :disabled="disabl" @input="getsolid('fTesttype')" v-model="formData.fTesttype"
                                        placeholder="/"></el-input>
                                </div>
                            </div>
                        </div>
                        <!-- 检测依据 -->
                        <div class="top_box top_1">
                            <div class="top_4">
                                <div class="bottom1_1">
                                    检测依据
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2" ref="fTestnote">
                                    <!-- <el-input v-model="formData.fTestnote" placeholder="/"></el-input> -->
                                    <el-select :disabled="disabl" placeholder="/" v-model="formData.fTestnote" @change="function (item) {
                                        return TestnoteSelectId(item);
                                    }
                                        ">
                                        <el-option v-for="(item, index) of TestnoteData" :key="index"
                                            :label="item.fItemname" :value="item">
                                        </el-option>
                                    </el-select>
                                </div>
                            </div>
                            <div class="top_4">
                                <div class="bottom1_1" style="border-left: 1px solid #ccc">
                                    判定依据
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2" ref="fJudgetype">
                                    <!-- <el-input v-model="formData.fJudgetype" placeholder="/"></el-input> -->
                                    <el-select :disabled="disabl" placeholder="/" v-model="formData.fJudgetype" @change="function (item) {
                                        return JudgetypeSelectId(item);
                                    }
                                        ">
                                        <el-option v-for="(item, index) of JudgetypeData" :key="index"
                                            :label="item.fItemname" :value="item">
                                        </el-option>
                                    </el-select>
                                </div>
                            </div>
                        </div>
                        <!-- 主要仪器设备名称及编号 -->
                        <div class="top_box top_1 top_2 hhgy hgjk">
                            <div class="bottom1_1" style="position: relative">
                                主要仪器设备<br />名称及编号
                                <i v-if="flagNum == 0" class="iconfont icon-must-fill2" style="
                          color: red;
                          width: 5px;
                          position: absolute;
                          top: 10px;
                          right: 10px;
                        "></i>
                            </div>
                            <div class="bottom1_2" ref="fEquipmentname">
                                <el-select :disabled="disabl" placeholder="/" v-model="fEquipmentname" multiple
                                    value-key="fId" @change="selectEquipmen">
                                    <el-option v-for="(item, index) in tableData1"
                                        :label="`${item.fEqptname}/${item.fEqptno}`" :value="item" :key="index">
                                    </el-option>
                                </el-select>
                            </div>
                        </div>
                        <!-- 钢筋工称直径 -->
                        <div class="top_box top_1">
                            <div class="top_4 top_3">
                                <div class="bottom1_1">
                                    测区强度换算表
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2 selectCenter" ref="fConcretetype">
                                    <el-select :disabled="disabl" v-model="formData.fConcretetype" @change="function (item) {
                                        return ConcretetypeSelectId(item);
                                    }
                                        " placeholder="/">
                                        <el-option v-for="(item, index) of Concretetype" :key="index"
                                            :label="item.fItemName" :value="item.fItemName">
                                        </el-option>
                                    </el-select>
                                </div>
                            </div>
                            <div class="top_4 top_3">
                                <div class="bottom1_1" style="border-left: 1px solid #ccc">
                                    实测数量(测区)
                                </div>
                                <div class="bottom1_2">
                                    <el-input disabled v-model="formData.fTestnum" placeholder="/"
                                        class="center_text"></el-input>
                                </div>
                            </div>
                        </div>
                        <!-- 报告编号 -->
                        <div class="top_box top_1">
                            <div class="top_4 top_3">
                                <div class="bottom1_1">
                                    回弹测试方向
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2 selectCenter" ref="fDirection">
                                    <el-select :disabled="disabl" placeholder="/" v-model="formData.fDirection" @change="function (item) {
                                        return DirectionSelectId(item);
                                    }
                                        ">
                                        <el-option v-for="(item, index) of Direction" :key="index" :label="item.fItemName"
                                            :value="item">
                                        </el-option>
                                    </el-select>
                                </div>
                            </div>
                            <div class="top_4 top_3">
                                <div class="bottom1_1" style="border-left: 1px solid #ccc">
                                    标准差S(MPa)
                                </div>
                                <div class="bottom1_2">
                                    <el-input disabled v-model="formData.fStandarddeviation" placeholder="/"
                                        class="center_text">
                                    </el-input>
                                </div>
                            </div>
                        </div>
                        <!-- 构件名称 -->
                        <div class="top_box top_1">
                            <div class="top_4 top_3">
                                <div class="bottom1_1">
                                    检测浇筑面
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2 selectCenter" ref="fSurface" style="text-align: center">
                                    <el-select :disabled="disabl" placeholder="/" v-model="formData.fSurface"
                                        @change="selectAngles">
                                        <el-option v-for="(item, index) of Surface" :key="index" :label="item.fItemName"
                                            :value="item.fItemName">
                                        </el-option>
                                    </el-select>
                                </div>
                            </div>
                            <div class="top_4 top_3">
                                <div class="bottom1_1" style="border-left: 1px solid #ccc">
                                    混凝土强度推定值(MPa)
                                </div>
                                <div class="bottom1_2">
                                    <el-input disabled v-model="formData.fConcreteresult" placeholder="/"
                                        class="center_text"></el-input>
                                </div>
                            </div>
                        </div>

                        <!-- 表格 -->
                        <div class="table_recordSheetf">
                            <!-- 左侧数据1-20 -->
                            <div class="recordSheet" style="width: 100%; box-sizing: border-box">
                                <el-table style="width: 100%; box-sizing: border-box">
                                    <el-table-column label="测区" width="48"> </el-table-column>
                                    <el-table-column label="各测点实测回弹值Ni" align="center">
                                        <el-table-column label="1" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="2" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="3" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="4" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="5" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="6" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="7" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="8" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="9" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="10" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="11" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="12" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="13" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="14" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="15" :width="widthTab">
                                        </el-table-column>
                                        <el-table-column label="16" :width="widthTab">
                                        </el-table-column>
                                    </el-table-column>
                                </el-table>
                                <div class="recordSheet_boxf" v-for="(v, i) in formData.checkConcretesampleitems" :key="i">
                                    <div class="recordSheet_box_1f row1_2" style="color: #676d77; font-size: 12px">
                                        <!-- {{i+1}} -->
                                        <el-input v-model="v.fOrder" placeholder="/" disabled
                                            class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_2" ref="focus">
                                        <el-input ref="fParam1" @keyup.native="moveFocus($event, i, 1)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam1"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_3">
                                        <el-input ref="fParam2" @keyup.native="moveFocus($event, i, 2)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam2"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_4">
                                        <el-input ref="fParam3" @keyup.native="moveFocus($event, i, 3)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam3"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_5">
                                        <el-input ref="fParam4" @keyup.native="moveFocus($event, i, 4)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam4"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_2">
                                        <el-input ref="fParam5" @keyup.native="moveFocus($event, i, 5)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam5"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_2">
                                        <el-input ref="fParam6" @keyup.native="moveFocus($event, i, 6)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam6"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_3">
                                        <el-input ref="fParam7" @keyup.native="moveFocus($event, i, 7)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam7"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_4">
                                        <el-input ref="fParam8" @keyup.native="moveFocus($event, i, 8)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam8"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_5">
                                        <el-input ref="fParam9" @keyup.native="moveFocus($event, i, 9)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam9"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_2">
                                        <el-input ref="fParam10" @keyup.native="moveFocus($event, i, 10)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam10"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_2">
                                        <el-input ref="fParam11" @keyup.native="moveFocus($event, i, 11)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam11"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_3">
                                        <el-input ref="fParam12" @keyup.native="moveFocus($event, i, 12)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam12"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_4">
                                        <el-input ref="fParam13" @keyup.native="moveFocus($event, i, 13)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam13"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_5">
                                        <el-input ref="fParam14" @keyup.native="moveFocus($event, i, 14)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam14"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_2">
                                        <el-input ref="fParam15" @keyup.native="moveFocus($event, i, 15)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam15"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3f row1_2">
                                        <el-input ref="fParam16" @keyup.native="moveFocus($event, i, 16)"
                                            :disabled="disabledText" @input="getInfoData" v-model="v.fParam16"
                                            placeholder="/" class="center_text"></el-input>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- 表二 -->
                        <div class="table_recordSheetfv" id="steelSheet">
                            <!-- 左侧数据1-20 -->
                            <div class="recordSheet" style="width: 100%; box-sizing: border-box">
                                <!-- <el-table border style="margin-top: 50px;" :data="transData">
                    <el-table-column v-for="(item, index) in transData" :label="item" :key="index" align="center">
                      <template slot-scope="scope">
                        {{scope.row[index]}}
                      </template>
                    </el-table-column>
                                                                          </el-table> -->

                                <el-table style="width: 100%; box-sizing: border-box">
                                    <el-table-column label="测区" width="158"> </el-table-column>
                                    <el-table-column label="1" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="2" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="3" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="4" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="5" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="6" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="7" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="8" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="9" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="10" :width="widthTab1">
                                    </el-table-column>
                                </el-table>
                                <div class="recordSheet_boxf" v-for="(v, i) in formData.checkConcretesampleresult" :key="i">
                                    <div class="recordSheet_box_1fv row1_2" style="color: #676d77; font-size: 12px">
                                        <el-input v-model="v.fNote" placeholder="/" disabled class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_2">
                                        <el-input disabled v-if="v.fNote != '检测角度(o)' && v.fNote != '碳化深度dm(mm)'
                                            " v-model="v.fResult1" placeholder="/" class="center_text"></el-input>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '检测角度(o)'" v-model="v.fResult1" placeholder="/">
                                            <el-option v-for="item in angleData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '碳化深度dm(mm)'" v-model="v.fResult1" placeholder="/">
                                            <el-option v-for="item in carbonationData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_3">
                                        <el-input disabled v-if="v.fNote != '检测角度(o)' && v.fNote != '碳化深度dm(mm)'
                                            " v-model="v.fResult2" placeholder="/" class="center_text"></el-input>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '检测角度(o)'" v-model="v.fResult2" placeholder="/">
                                            <el-option v-for="item in angleData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '碳化深度dm(mm)'" v-model="v.fResult2" placeholder="/">
                                            <el-option v-for="item in carbonationData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_4">
                                        <el-input disabled v-if="v.fNote != '检测角度(o)' && v.fNote != '碳化深度dm(mm)'
                                            " v-model="v.fResult3" placeholder="/" class="center_text"></el-input>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '检测角度(o)'" v-model="v.fResult3" placeholder="/">
                                            <el-option v-for="item in angleData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '碳化深度dm(mm)'" v-model="v.fResult3" placeholder="/">
                                            <el-option v-for="item in carbonationData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_5">
                                        <el-input disabled v-if="v.fNote != '检测角度(o)' && v.fNote != '碳化深度dm(mm)'
                                            " v-model="v.fResult4" placeholder="/" class="center_text"></el-input>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '检测角度(o)'" v-model="v.fResult4" placeholder="/">
                                            <el-option v-for="item in angleData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '碳化深度dm(mm)'" v-model="v.fResult4" placeholder="/">
                                            <el-option v-for="item in carbonationData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_2">
                                        <el-input disabled v-if="v.fNote != '检测角度(o)' && v.fNote != '碳化深度dm(mm)'
                                            " v-model="v.fResult5" placeholder="/" class="center_text"></el-input>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '检测角度(o)'" v-model="v.fResult5" placeholder="/">
                                            <el-option v-for="item in angleData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '碳化深度dm(mm)'" v-model="v.fResult5" placeholder="/">
                                            <el-option v-for="item in carbonationData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_2">
                                        <el-input disabled v-if="v.fNote != '检测角度(o)' && v.fNote != '碳化深度dm(mm)'
                                            " v-model="v.fResult6" placeholder="/" class="center_text"></el-input>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '检测角度(o)'" v-model="v.fResult6" placeholder="/">
                                            <el-option v-for="item in angleData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '碳化深度dm(mm)'" v-model="v.fResult6" placeholder="/">
                                            <el-option v-for="item in carbonationData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_3">
                                        <el-input disabled v-if="v.fNote != '检测角度(o)' && v.fNote != '碳化深度dm(mm)'
                                            " v-model="v.fResult7" placeholder="/" class="center_text"></el-input>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '检测角度(o)'" v-model="v.fResult7" placeholder="/">
                                            <el-option v-for="item in angleData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '碳化深度dm(mm)'" v-model="v.fResult7" placeholder="/">
                                            <el-option v-for="item in carbonationData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_4">
                                        <el-input disabled v-if="v.fNote != '检测角度(o)' && v.fNote != '碳化深度dm(mm)'
                                            " v-model="v.fResult8" placeholder="/" class="center_text"></el-input>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '检测角度(o)'" v-model="v.fResult8" placeholder="/">
                                            <el-option v-for="item in angleData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '碳化深度dm(mm)'" v-model="v.fResult8" placeholder="/">
                                            <el-option v-for="item in carbonationData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_5">
                                        <el-input disabled v-if="v.fNote != '检测角度(o)' && v.fNote != '碳化深度dm(mm)'
                                            " v-model="v.fResult9" placeholder="/" class="center_text"></el-input>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '检测角度(o)'" v-model="v.fResult9" placeholder="/">
                                            <el-option v-for="item in angleData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '碳化深度dm(mm)'" v-model="v.fResult9" placeholder="/">
                                            <el-option v-for="item in carbonationData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_2">
                                        <el-input disabled v-if="v.fNote != '检测角度(o)' && v.fNote != '碳化深度dm(mm)'
                                            " v-model="v.fResult10" placeholder="/" class="center_text"></el-input>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '检测角度(o)'" v-model="v.fResult10" placeholder="/">
                                            <el-option v-for="item in angleData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                        <el-select :disabled="disabledText" @change="selectAngle"
                                            v-else-if="v.fNote == '碳化深度dm(mm)'" v-model="v.fResult10" placeholder="/">
                                            <el-option v-for="item in carbonationData" :key="item.value" :label="item.label"
                                                :value="item.label">
                                            </el-option>
                                        </el-select>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 附加声明 -->
                        <div class="bottom_box box2">
                            <div class="bottom1_1">附加声明</div>
                            <div class="bottom1_2">
                                <el-input :disabled="disabl" v-model="formData.fNote"></el-input>
                            </div>
                        </div>
                        <!-- 监理 -->
                        <!-- <div class="bottom_box box3">
                <div class="bottom1_1">监理</div>
                <div class="bottom1_2"></div>
                                                                      </div> -->
                    </div>
                    <!-- 钢筋保护层厚度试验检测报告 -->
                    <div v-show="activeIndex == 2" class="dialogBody common reportSheet" :style="{ height: dialogHeights }">
                        <header>
                            现场混凝土强度检测报告
                            <div class="printTable" v-if="flagNum != 0">
                                <el-button type="primary" icon="el-icon-printer" size="small" @click="Print(2)">打印表格
                                </el-button>
                            </div>
                        </header>
                        <!-- 头部 -->
                        <div class="title">
                            <div class="title_Name">
                                <div class="title_input_text">检测单位名称(专用章):</div>
                                <div class="title_input_con" v-text="formData.fLeadercompanyfullname"></div>
                            </div>
                            <div class="title_input">
                                <div class="title_input_text">报告编号：</div>
                                <div class="title_input_con" v-text="formData.fReportno"></div>
                            </div>
                        </div>
                        <!-- 施工/委托单位 -->
                        <div class="top_box top_1 top_boxh" style="height: 40px !important; line-height: 50px">
                            <div class="top_4" style="height: 40px !important; line-height: 50px !important">
                                <div class="bottom1_1" style="
                          line-height: 40px !important;
                          border-bottom: 1px solid #ccc;
                        ">
                                    施工/委托单位
                                </div>
                                <div class="bottom1_2" style="display: flex; word-break: break-all">
                                    {{ formData.fCompanyfullname }}
                                    <!-- <el-input disabled v-model="formData.fCompanyfullname" placeholder="/"></el-input> -->
                                </div>
                            </div>
                            <div class="top_4">
                                <div class="bottom1_1" style="
                          border-left: 1px solid #ccc;
                          line-height: 50px !important;
                        ">
                                    工程名称
                                </div>
                                <div class="bottom1_2">
                                    {{ formData.fProjectfullname }}
                                    <!-- <el-input disabled v-model="formData.fProjectfullname" placeholder="/"></el-input> -->
                                </div>
                            </div>
                        </div>
                        <!-- 工程部位/用途 -->
                        <div class="top_box top_1 top_boxh">
                            <div class="bottom1_1">
                                工程部位/用途
                                <i v-if="flagNum == 0" class="iconfont icon-must-fill2" style="color: red; width: 5px"></i>
                            </div>
                            <div class="bottom1_2 hbhg" ref="fProjecttypename1" @click="changeProject"
                                style="padding: 0 !important">
                                <el-input disabled v-model="formData.fProjecttypename" placeholder="/"></el-input>
                            </div>
                        </div>
                        <!-- 样品信息 -->
                        <div class="top_box top_1 top_boxh">
                            <div class="bottom1_1">
                                样品信息
                                <i v-if="flagNum == 0" class="iconfont icon-must-fill2" style="color: red; width: 5px"></i>
                            </div>
                            <div class="bottom1_2" ref="fSamplename1" @click="sampleDetails()"
                                style="background-color: #f5f7fa">
                                <el-input v-model="sample" placeholder="/" disabled></el-input>
                            </div>
                        </div>
                        <div class="top_box top_1 top_boxh">
                            <div class="top_4">
                                <div class="bottom1_1">报告日期</div>
                                <div class="bottom1_2" ref="fReportdates">
                                    <el-date-picker :disabled="disabl" format="yyyy/MM/dd" value-format="yyyy-MM-dd"
                                        v-model="formData.fReportdates" type="date" placeholder="选择日期">
                                    </el-date-picker>
                                </div>
                            </div>
                            <div class="top_4">
                                <div class="bottom1_1">
                                    是否合格
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2" ref="fIstrue">
                                    <el-select :disabled="disabl" @change="fIstrueChange('fIstrue')" placeholder="/"
                                        v-model="formData.fIstrue">
                                        <el-option v-for="(item, index) of IstrueData" :key="index" :label="item.fItemName"
                                            :value="item.fItemName">
                                        </el-option>
                                    </el-select>
                                </div>
                            </div>
                        </div>

                        <!-- <div class="top_4">
                  <div class="bottom1_1">试验检测日期</div>
                  <div class="bottom1_2">
                    <el-date-picker v-model="formData.fTestdates" type="date" placeholder="选择日期">
                    </el-date-picker>
                  </div>
                                                                        </div> -->

                        <!-- 检测依据 -->
                        <div class="top_box top_1 top_boxh">
                            <div class="top_4">
                                <div class="bottom1_1">
                                    检测依据
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2" ref="fTestnote1">
                                    <el-select :disabled="disabl" placeholder="/" v-model="formData.fTestnote" @change="function (item) {
                                        return TestnoteSelectId(item);
                                    }
                                        ">
                                        <el-option v-for="(item, index) of TestnoteData" :key="index"
                                            :label="item.fItemname" :value="item">
                                        </el-option>
                                    </el-select>
                                </div>
                            </div>
                            <div class="top_4">
                                <div class="bottom1_1" style="border-left: 1px solid #ccc">
                                    判定依据
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2" ref="fJudgetype1">
                                    <el-select :disabled="disabl" placeholder="/" v-model="formData.fJudgetype" @change="function (item) {
                                        return JudgetypeSelectId(item);
                                    }
                                        ">
                                        <el-option v-for="(item, index) of JudgetypeData" :key="index"
                                            :label="item.fItemname" :value="item">
                                        </el-option>
                                    </el-select>
                                </div>
                            </div>
                        </div>
                        <!-- 主要仪器设备名称及编号 -->
                        <div class="top_box top_1 top_2">
                            <div class="bottom1_1" style="position: relative">
                                主要仪器设备<br />名称及编号
                                <i v-if="flagNum == 0" class="iconfont icon-must-fill2" style="
                          color: red;
                          width: 5px;
                          position: absolute;
                          top: 10px;
                          right: 10px;
                        "></i>
                            </div>
                            <div class="bottom1_2" ref="fEquipmentname1">
                                <el-select :disabled="disabl" placeholder="/" v-model="fEquipmentname" multiple
                                    value-key="fId" @change="selectEquipmen">
                                    <el-option v-for="(item, index) in tableData1"
                                        :label="`${item.fEqptname}/${item.fEqptno}`" :value="item" :key="index">
                                    </el-option>
                                </el-select>
                            </div>
                        </div>
                        <!-- 龄期 -->
                        <div class="top_box top_1 top_boxh">
                            <div class="top_4">
                                <div class="bottom1_1">
                                    龄期(d)
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2" ref="fSpecimenage">
                                    <el-input :disabled="disabl" @input="getsolid('fSpecimenage')"
                                        v-model="formData.fSpecimenage" placeholder="/">
                                    </el-input>
                                </div>
                            </div>
                            <div class="top_4">
                                <div class="bottom1_1" style="border-left: 1px solid #ccc">
                                    设计强度等级
                                </div>
                                <div class="bottom1_2">
                                    <el-input disabled v-model="formData.fConcretelevel" placeholder="/"></el-input>
                                </div>
                            </div>
                        </div>

                        <!-- 钢筋工称直径 -->
                        <div class="top_box top_1 top_boxh">
                            <div class="top_4 top_3">
                                <div class="bottom1_1">
                                    测区强度换算表
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2 selectCenter" ref="fConcretetype1">
                                    <el-select disabled v-model="formData.fConcretetype" placeholder="/">
                                        <el-option v-for="(item, index) of Concretetype" :key="index"
                                            :label="item.fItemName" :value="item">
                                        </el-option>
                                    </el-select>
                                </div>
                            </div>
                            <div class="top_4 top_3">
                                <div class="bottom1_1" style="border-left: 1px solid #ccc">
                                    实测数量(测区)
                                </div>
                                <div class="bottom1_2">
                                    <el-input disabled v-model="formData.fTestnum" placeholder="/"
                                        class="center_text"></el-input>
                                </div>
                            </div>
                        </div>
                        <!-- 报告编号 -->
                        <div class="top_box top_1 top_boxh">
                            <div class="top_4 top_3">
                                <div class="bottom1_1">
                                    回弹测试方向
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2 selectCenter" ref="fDirection1">
                                    <el-select placeholder="/" v-model="formData.fDirection" disabled @change="function (item) {
                                        return DirectionSelectId(item);
                                    }
                                        ">
                                        <el-option v-for="(item, index) of Direction" :key="index" :label="item.fItemName"
                                            :value="item">
                                        </el-option>
                                    </el-select>
                                </div>
                            </div>
                            <div class="top_4 top_3">
                                <div class="bottom1_1" style="border-left: 1px solid #ccc">
                                    标准差S(MPa)
                                </div>
                                <div class="bottom1_2">
                                    <el-input disabled v-model="formData.fStandarddeviation" placeholder="/"
                                        class="center_text">
                                    </el-input>
                                </div>
                            </div>
                        </div>
                        <!-- 构件名称 -->
                        <div class="top_box top_1 top_boxh">
                            <div class="top_4 top_3">
                                <div class="bottom1_1">
                                    检测浇筑面
                                    <i v-if="flagNum == 0" class="iconfont icon-must-fill2"
                                        style="color: red; width: 5px"></i>
                                </div>
                                <div class="bottom1_2 selectCenter" ref="fSurface1">
                                    <el-select disabled placeholder="/" v-model="formData.fSurface">
                                        <el-option v-for="(item, index) of Surface" :key="index" :label="item.fItemName"
                                            :value="item.fItemName">
                                        </el-option>
                                    </el-select>
                                </div>
                            </div>
                            <div class="top_4 top_3">
                                <div class="bottom1_1" style="border-left: 1px solid #ccc">
                                    混凝土强度推定值(MPa)
                                </div>
                                <div class="bottom1_2">
                                    <el-input disabled v-model="formData.fConcreteresult" placeholder="/"
                                        class="center_text"></el-input>
                                </div>
                            </div>
                        </div>
                        <!-- 表格 -->
                        <div class="table_recordSheetfvs table369">
                            <!-- 左侧数据1-20 -->
                            <div class="recordSheet" style="width: 100%; box-sizing: border-box">
                                <el-table style="width: 100%; box-sizing: border-box">
                                    <el-table-column label="测区" width="158"> </el-table-column>
                                    <el-table-column label="1" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="2" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="3" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="4" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="5" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="6" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="7" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="8" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="9" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="10" :width="widthTab1">
                                    </el-table-column>
                                    <el-table-column label="11" :width="widthTab1">
                                    </el-table-column>
                                </el-table>
                                <div class="recordSheet_box" v-for="(v, i) in formData.checkConcretesampleresult" :key="i">
                                    <div class="recordSheet_box_1fvs row1_2" style="color: #676d77; font-size: 12px">
                                        <el-input v-model="v.fNote" placeholder="/" disabled class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_2">
                                        <el-input disabled v-model="v.fResult1" placeholder="/"
                                            class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_3">
                                        <el-input disabled v-model="v.fResult2" placeholder="/"
                                            class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_4">
                                        <el-input disabled v-model="v.fResult3" placeholder="/"
                                            class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_5">
                                        <el-input disabled v-model="v.fResult4" placeholder="/"
                                            class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_2">
                                        <el-input disabled v-model="v.fResult5" placeholder="/"
                                            class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_2">
                                        <el-input disabled v-model="v.fResult6" placeholder="/"
                                            class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_3">
                                        <el-input disabled v-model="v.fResult7" placeholder="/"
                                            class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_4">
                                        <el-input disabled v-model="v.fResult8" placeholder="/"
                                            class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_5">
                                        <el-input disabled v-model="v.fResult9" placeholder="/"
                                            class="center_text"></el-input>
                                    </div>
                                    <div class="recordSheet_box_3fv row1_2">
                                        <el-input disabled v-model="v.fResult10" placeholder="/"
                                            class="center_text"></el-input>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--底部 第一行 -->

                        <!-- 检测结论 -->
                        <div class="bottom_box box2">
                            <div class="bottom1_1">
                                检测结论
                                <i v-if="flagNum == 0" class="iconfont icon-must-fill2" style="color: red; width: 5px"></i>
                            </div>
                            <div class="bottom1_2" ref="fTestresult">
                                <!-- <el-input v-model="formData.fTestresult"></el-input> -->
                                <el-select :disabled="disabl" @change="fIstrueChange('fTestresult')" placeholder="/"
                                    v-model="formData.fTestresult">
                                    <el-option v-for="(item, index) of Testresult" :key="index" :label="item.fItemName"
                                        :value="item.fItemName">
                                    </el-option>
                                </el-select>
                            </div>
                        </div>
                        <!-- 附加声明 -->
                        <div class="bottom_box box2">
                            <div class="bottom1_1">附加声明</div>
                            <div class="bottom1_2">
                                <el-input :disabled="disabl" v-model="formData.fNote"></el-input>
                            </div>
                        </div>
                        <!-- 监理意见及签字 -->
                        <!-- <div class="bottom_box box3 top_boxh">
                <div class="bottom1_1">监理意见及签字</div>
                <div class="bottom1_2">
                  <el-input v-model="supervisor"></el-input>
                </div>
                                                                      </div> -->
                    </div>
                    <div style="height: 40px" v-if="flagNum == 0">
                        <div style="position: absolute; right: 5px; bottom: 0">
                            <el-button type="primary" @click="submitForm(formData)">保存</el-button>
                            <el-button type="warning" @click="resetForm()">关闭</el-button>
                        </div>
                    </div>
                </el-dialog>
            </div>

            <!-- 样品信息 -->
            <div class="Control-1 samll mechanism_dialog Sample_dialog">
                <el-dialog :close-on-click-modal="false" title="样品信息详情" 
                    :visible.sync="dialogTableVisibleSample" v-loading="loadingDialogSample" element-loading-text="拼命加载中"
                    element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.2)">
                    <div class="dialogBody common" :style="{ height: dialogHeightSample }">
                        <el-form :model="formDataSample" :rules="rulesSample" ref="formDataSample">
                            <div class="tableRow">
                                <el-form-item label="样品名称" prop="sampleName" :label-width="formLabelWidth">
                                    <el-input v-model="formDataSample.sampleName" autocomplete="off"
                                        placeholder="请输入"></el-input>
                                </el-form-item>
                            </div>
                            <div class="tableRow">
                                <el-form-item label="样品编号" prop="sampleNum" :label-width="formLabelWidth">
                                    <el-input v-model="formDataSample.sampleNum" autocomplete="off" placeholder="请输入"
                                        disabled></el-input>
                                </el-form-item>
                            </div>

                            <div class="tableRow" style="margin-top: 10px">
                                <el-form-item label="样品状态" prop="sampleStatus" :label-width="formLabelWidth">
                                    <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll"
                                        @change="handleCheckAllChange">全选
                                    </el-checkbox>
                                    <div style="margin: 15px 0"></div>
                                    <el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange">
                                        <el-checkbox v-for="city in cities" :label="city" :key="city">{{ city
                                        }}</el-checkbox>
                                    </el-checkbox-group>
                                </el-form-item>
                            </div>

                            <el-form-item class="newlyAdded_btn">
                                <el-button type="primary" @click="submitFormSample('formDataSample')">保存</el-button>
                                <el-button type="warning" @click="resetFormSample('formDataSample')">关闭</el-button>
                            </el-form-item>
                        </el-form>
                    </div>
                </el-dialog>
            </div>
        </div>
    </div>
</template>
  
<script>
const cityOptions = [
    "表面光洁、干净、干燥 12",
    "表面光洁、干净、干燥 13",
    "表面光洁、干净、干燥 14",
];
import actions from "@/actions";
import messageBox from "@/components/public/messageBox"; //弹框
import Pagination from "@/components/public/el-pagination"; //主页面分页

import {
    getConcreteChecksamplePageList,
    getCheckTypeByUserList, // 检测类型 - 根据当前登录用户获取检测类型
    addConcreteChecksample, // 混凝土回弹业务监管-新增前获取报告接口
    getCheckitemsList, // 试验检测依据-获取试验依据，检测依据
    saveConcreteChecksample, // 混凝土回弹业务监管-新增接口
    delConcreteChecksample, //删除
    getConcreteProjectList,
    getConcreteChecksampleByFid, //详情
    submitConcreteChecksample, //提交
    getMangEquipmentPageList,
} from "@/api/request.js";
// el-breadcrumb
export default {

    name: "Control-1",
    data() {
        return {
            names: "Control-1",
            btnObj: [{
                visible: true, // 是否展示出来
                title: "按检测记录新增",
                name: this.engineerings,
                order: 0
            }, {
                visible: true, // 是否展示出来
                title: "选工程划分新增",
                name: this.engineerings,
                order: 2
            }, {
                visible: true, // 是否展示出来
                title: "编辑",
                name: this.engineerings,
                order: 1
            }, {
                visible: true, // 是否展示出来
                title: "提交",
                name: this.SubmitText,
                order: 3
            }, {
                visible: true, // 是否展示出来
                title: "删除",
                name: this.rowDelete,
                order: 5,
            }, {
                visible: true, // 是否展示出来
                title: "查看",
                name: this.openDialog,
                order: 4,
            }],
            showMsgBox: false,
            msgTip: "请先选中数据行！",
            msgType: 1,
            editLoading: false,
            falgId: null,
            rowInfo: null, //当前行信息
            projectsObj: [], //项目名
            tendersObj: [],
            Checktype: [
                {
                    fItemName: "==请选择==",
                    fItemValue: "==请选择==",
                },
                {
                    fItemName: "施工单位自检",
                    fItemValue: "施工单位自检",
                },
                {
                    fItemName: "监理单位抽检",
                    fItemValue: "监理单位抽检",
                },
                {
                    fItemName: "中试单位抽检",
                    fItemValue: "中试单位抽检",
                },
            ], //检测类型 - 根据当前登录用户获取检测类型



            flagNum: 0,
            disabl: false,
            diaProjectNum: null,
            widthTab: "55",
            widthTab1: "77",
            rowFlag: "", //点击回弹设计值标志
            rowData: "", //点击当前行信息
            // Checktype: [], //检测类型 - 根据当前登录用户获取检测类型
            fEquipmentname: [], //已选主要仪器设备
            TestnoteData: [], //回弹试验依据
            JudgetypeData: [], //回弹判定依据
            dateMo: null, //默认日期
            Concretetype: [
                {
                    fItemCode: null,
                    fItemName: "非泵送混凝土",
                    fItemValue: "非泵送混凝土",
                    fOrganID: null,
                    fRegisterId: null,
                    oUserId: null,
                },
                {
                    fItemCode: null,
                    fItemName: "泵送混凝土",
                    fItemValue: "泵送混凝土",
                    fOrganID: null,
                    fRegisterId: null,
                    oUserId: null,
                },
            ], //测区强度换算表
            Direction: [
                {
                    fItemCode: null,
                    fItemName: "水平方向",
                    fItemValue: "水平方向",
                    fOrganID: 0,
                    fRegisterId: null,
                    oUserId: null,
                },
                {
                    fItemCode: null,
                    fItemName: "非水平方向",
                    fItemValue: "非水平方向",
                    fOrganID: 1,
                    fRegisterId: null,
                    oUserId: null,
                },
            ], //回弹测试方向
            Surface: [
                {
                    fItemCode: null,
                    fItemName: "表面",
                },
                {
                    fItemCode: null,
                    fItemName: "侧面",
                },
                {
                    fItemCode: null,
                    fItemName: "底面",
                },
            ], //检测浇筑面
            IstrueData: [
                {
                    fItemCode: null,
                    fItemName: "合格",
                },
                {
                    fItemCode: null,
                    fItemName: "不合格",
                },
                {
                    fItemCode: null,
                    fItemName: "/",
                },
            ], //是否合格
            Testresult: [
                {
                    fItemCode: null,
                    fItemName: "经检测，该结构物回弹强度推定值XMPa。",
                },
                {
                    fItemCode: null,
                    fItemName: "经检测，该检测结果符合（判定依据）技术要求。",
                },
            ], //检测结论
            angleData: [
                //   {
                //   value: '-1',
                //   label: '0°'
                // },
                {
                    value: "0",
                    label: "90°",
                },
                {
                    value: "1",
                    label: "60°",
                },
                {
                    value: "2",
                    label: "45°",
                },
                {
                    value: "3",
                    label: "30°",
                },
                {
                    value: "4",
                    label: "-30°",
                },
                {
                    value: "5",
                    label: "-45°",
                },
                {
                    value: "6",
                    label: "-60°",
                },
                {
                    value: "7",
                    label: "-90°",
                },
            ], //角度数据
            carbonationData: [
                //碳化深度
                {
                    value: "0",
                    label: "0.0",
                },
                {
                    value: "1",
                    label: "0.5",
                },
                {
                    value: "2",
                    label: "1.0",
                },
                {
                    value: "3",
                    label: "1.5",
                },
                {
                    value: "4",
                    label: "2.0",
                },
                {
                    value: "5",
                    label: "2.5",
                },
                {
                    value: "6",
                    label: "3.0",
                },
                {
                    value: "7",
                    label: "3.5",
                },
                {
                    value: "8",
                    label: "4.0",
                },
                {
                    value: "9",
                    label: "4.5",
                },
                {
                    value: "10",
                    label: "5.0",
                },
                {
                    value: "11",
                    label: "5.5",
                },
                {
                    value: "12",
                    label: "≥6.0",
                },
            ],
            transData: ["测区", "1", "2", "3", "4", "5", "6", "7", "8", " 9", "10"],
            selecttTotalIdIndex: [], //已填测区 index
            surfaceList: [], //表面计算
            detectionList: [], //角度计算
            concretetypeList: [], //泵送混凝土
            concretetypeunList: [], //非泵送混凝土
            RmData: [], //实测平均回弹值Rm
            betonData: [], //根据测区强度换算表的混凝土数据
            disabledText: true,
            navigatepageNums: null, //是否显示分页
            queryCriteriaData: {},
            equipmentDetailId: null, //列表页id
            isIndeterminate: true, //样品全选
            checkAll: false,
            cities: cityOptions,
            checkedCities: [], //打开默认选中

            // 设备名称、编号
            dialogTableVisibleNn: false,
            loadingDialogNn: false,
            rowZ: null,
            // 设备名称、编号

            // 样品信息
            dialogTableVisibleSample: false,
            loadingDialogSample: false,

            dialogHeightSample: "",
            formDataSample: { sampleName: null, sampleNum: null, sampleStatus: [] },
            rulesSample: {
                sampleName: [
                    { required: true, message: "请输入角色编码", trigger: "blur" },
                ],
                sampleNum: [
                    { required: true, message: "请输入角色名称", trigger: "blur" },
                ],
                sampleStatus: [
                    { required: true, message: "请输入角色名称", trigger: "blur" },
                ],
            },
            // 样品信息
            // 按工程划分新增
            dialogTableVisibleDivide: false,
            loadingDialogDivide: false,
            rowD: null,
            tableData5: [],
            tableData1: [],
            fProjectpartid: null,

            fProjectpart: null,
            // 按工程划分新增
            activeIndex: "1",
            departmentList: [
                { text: "混凝土回弹检测仪器设备" },
                { text: "钢筋保护层厚度检测设备" },
            ], //外检设备类型
            radio: "待办",
            dialogHeight: "",
            dialogHeights: "",
            fId: null, //当前数据fId
            loading: false,
            loadings: false,
            fDepartmentid: "", //当前行部门id
            dialogFormVisible: false,
            userInfo: {}, //登录用户
            // 列表
            getList: {
                modelType: "0", // 0代办 1已办  2查询页面
                fCompanyid: null, //机构id
                fUserid: null, //当前登录用户id
                // sublevel: null, //查看下级  1是0否
                sublevel: "0", //查看下级  1是0否
                keyWord: "", //样品编号模糊查询字段
                keyType: "",
                page: 1, //页码
                pageSize: 20, //每页条数
            },
            // 新增/编辑
            dialogText: "",
            dialogTableVisible: false,
            loadingDialog: false,
            fMajorequipnameandnumber: null,
            formData: {
                fChecktype: "", //检测类型
                fId: "", //修改数据时传
                fProjectfullname: "", //工程名称全称
                fProjectname: "", //工程名称简称
                fProjectid: "", //工程名称id
                fCompanyfullname: "", //施工/委托单位全称
                fCompanyname: "", //施工/委托单位简称
                fCompanyid: "", //施工/委托单位id
                fLeadercompanyfullname: "", //检测单位全称
                fLeadercompanyname: "", //检测单位简称
                fLeadercompanyid: "", //检测单位id
                fProjecttypeid: "", //工程部位/用途id
                fProjecttypename: "", //工程部位/用途名称
                fSamplingno: "", //样品编号
                fSamplename: "", //样品名称
                fSamplespecs: "", //样品描述*
                fEquipmentname: "", //主要仪器设备及编号*
                fEquipmentid: "", //主要仪器设备及编号id*
                fTesttype: "温度：  ℃  湿度：   %", //试验条件*
                fMarkno: "", //记录编号*
                fReportdates: "", //报告日期*
                fTestdates: "", //试验检测日期*
                fTestnote: "", //检测依据*
                fJudgetype: "", //判定依据*
                fSpecimenage: "", //龄期(d)*
                fConcretelevel: "", //设计强度等级*
                fReportno: "", //报告编号*
                fIstrue: "", //是否合格*
                fTestresult: "", //检测结论*
                fNote: "", //附加说明*
                fConcretetype: "", //测区强度换算表*
                fTestnum: "", //实测数量(测区)*
                fDirection: "", //回弹测试方向*
                fStandarddeviation: "", //标准差S(MPa)*
                fSurface: "", //检测浇筑面*
                fConcreteresult: "", //混凝土强度推定值(MPa)*
                userId: "", //当前登录人id
                userName: "", //当前登录人姓名
                checkConcretesampleitems: [], //测区集合,
                checkConcretesampleresult: [], //计算结果集合
            },
            sample: null, //样品信息

            row: null,
            formLabelWidth: "",
            tableData: [], //表格数据列表
            dialogVisible: false,

            thedHederShow: false,
        };
    },
    components: {
        messageBox,
        Pagination

    },
    created() {

    },
    mounted() {
        actions.onGlobalStateChange((state, prev) => {
            this.userInfo = prev.currentUser;
            var data = prev.currentUser.projects;
            this.projectsObj = [
                {
                    fItemName: "所有项目",
                    fItemValue: "",
                },
            ];
            data.map((item) => {
                this.projectsObj.push({
                    fItemName: item.projectName,
                    fItemValue: item.projectId,
                });
            });
        }, true);

        this.getList.fUserid = this.userInfo.id;
        this.getList.fCompanyid = this.userInfo.companyId;
        this.formData.userId = this.userInfo.id;
        this.formData.userName = this.userInfo.userName;
        this.surfaceList = JSON.parse(sessionStorage.getItem("GxEmbedded_surfaceList")); //表面计算
        this.detectionList = JSON.parse(sessionStorage.getItem("GxEmbedded_detectionList")); //角度计算
        this.concretetypeList = JSON.parse(
            sessionStorage.getItem("GxEmbedded_concretetypeList")
        ); //泵送混凝土
        this.concretetypeunList = JSON.parse(
            sessionStorage.getItem("GxEmbedded_concretetypeunList")
        ); //非泵送混凝土

        this.getDate();
        // var str = "表面光洁、干净、干燥 12;表面光洁、干净、干燥 13;"
        // var c = str.substring(0, str.length - 1)

        // this.tableCode();

        this.getCheckTypeByUserList(); //检测类型 - 根据当前登录用户获取检测类型
        this.getCheckitemsList("3"); //回弹试验依据
        this.getCheckitemsList("4"); //回弹判定依据
        this.getHeight();
        this.yj_searchForm(this.getList);

        this.getEquipment();
    },
    methods: {
        // 重置按钮
        reset() {
            this.timeDuring = "";
            this.getList = {
                fCompanyid: "", // 施工标段id，不为空
                startDates: "", // 开始时间
                endDates: "", // 截至时间
                stationId: "", // 梁场id
                machineId: "", // 张拉机id
                warningLevel: "", // 预警等级
                fCloseoperation: "", // 闭合状态
                keyWord: "", //  模糊条件
                page: 1, // 当前页数
                pageSize: 15, // 每页显示条数
                timeStr: "",
                fProjectposition: "", //工程部位模糊查询
                taskNo: "", //任务单模糊查询
                fStatus: "", //状态
                keyType: "1", ////张拉 1 压浆 2 必填
            };
        },
        selectProject(e) {
            console.log(11, e);
            this.falgId = e;
            this.tendersObj = [];
            this.getList.fCompanyid = "";


            this.getTender(e);
        },
        async getTender(e) {
            await this.$http(
                " http://172.18.5.31:8300/IOTManagement/Base/Company/getGXJLBaseCompanyList.do?projectId=" +
                e
            ).then((res) => {
                if (res.status == 200) {
                    var data = res.data.data.GXCompanyList;
                    this.tendersObj = [
                        {
                            fItemName: "所有标段",
                            fItemValue: "",
                        },
                    ];
                    data.map((item) => {
                        this.tendersObj.push({
                            fItemName: item.sectionName,
                            fItemValue: item.sectionId,
                        });
                    });
                }
            });
        },
        selectTender(e) {
            console.log(22, e);
            this.falgId = e;


        },
        confirmMsg() {
            this.showMsgBox = false;
        },
        Print(num) {
            if (num == 1) {
                window.open(
                    "http://1.14.19.236:8054/concreteScreen/App/upload/getExcelByConcreteSample.do?fId=" +
                    this.equipmentDetailId
                );
            } else if (num == 2) {
                window.open(
                    "http://1.14.19.236:8054/concreteScreen/App/upload/getExcelByConcreteSampleCode.do?fId=" +
                    this.equipmentDetailId
                );
            }
        },

        getDetail() {
            if (this.equipmentDetailId != null && this.equipmentDetailId != "") {
                this.edit(1);
                this.flagNum = 1;
            } else {
                return this.$message.error("请先选择需要编辑的数据");
            }
        },
        getsolid(text) {
            this.$refs[text].style.border = "none";
        },
        moveFocus(event, index, key) {
            if (event.code == "ArrowRight") {
                var text1 = "fParam" + (key + 1);
                if (key < 16) {
                    this.$refs[text1][index].focus();
                }
            } else if (event.code == "ArrowLeft") {
                var text2 = "fParam" + (key - 1);
                if (1 < key) {
                    this.$refs[text2][index].focus();
                }
            } else if (event.code == "ArrowDown") {
                var text3 = "fParam" + key;
                if (index < 9) {
                    this.$refs[text3][index + 1].focus();
                }
            } else if (event.code == "ArrowUp") {
                var text4 = "fParam" + key;
                if (0 < index) {
                    this.$refs[text4][index - 1].focus();
                }
            }

            if (event.keyCode === 13) {
                // 回车
                if (key < 16) {
                    var text5 = "fParam" + (key + 1);
                    this.$refs[text5][index].focus();
                } else if (key == 16) {
                    if (index < 9) {
                        key = 0;
                        key++;
                        var text6 = "fParam" + key;
                        this.$refs[text6][index + 1].focus();
                    }
                }
            }
            //
            // this.$refs[keyfield[0] + (index + 1)].focus()
            // this.$refs[keyfield[0] + (index + 1)].focus()
            // var clo = 'fParam' + (key + 1)

            // this.$refs[clo].focus()
        },
        handleCheckAllChange(val) {
            this.checkedCities = val ? cityOptions : [];
            this.isIndeterminate = false;
            this.formDataSample.sampleStatus = this.checkedCities;
        },
        // 页面切换
        handleSizeChange(val) {
            return val
        },
        handleCurrentChange(val) {
            this.getList.page = val;
            this.yj_searchForm(this.getList);
        },
        ConcretetypeSelectId(item) {
            //测区强度换算表
            this.$refs.fConcretetype.style.border = "none";
            this.$refs.fConcretetype1.style.border = "none";

            if (this.formData.fConcretetype != "" && this.formData.fDirection != "") {
                this.disabledText = false;
            } else {
                this.disabledText = true;
            }
            if (item == "非泵送混凝土") {
                this.betonData = this.concretetypeunList; //非泵送混凝土
            } else if (item == "泵送混凝土") {
                this.betonData = this.concretetypeList; //泵送混凝土
            }
            this.calculationData(
                this.RmData,
                this.formData.checkConcretesampleresult
            );
            // this.calculationData(this.RmData, this.formData.checkConcretesampleresult)
        },
        //
        selectAngles() {
            //检测角度(o)

            this.calculationData(
                this.RmData,
                this.formData.checkConcretesampleresult
            );
        },
        selectAngle() {
            //检测角度(o)
            this.calculationData(
                this.RmData,
                this.formData.checkConcretesampleresult
            );
        },
        getInfoData() {
            if (this.formData.fConcretetype == "") {
                this.$message.error("请选择测区强度换算表");
                return false;
            } else if (this.formData.fDirection == "") {
                this.$message.error("请选择回弹测试方向");
                return false;
            } else if (this.formData.fSurface == "") {
                this.$message.error("请选择检测浇筑面");
                return false;
            } else {
                // surfaceList: [],//表面计算
                // detectionList: [],//角度计算
                // concretetypeList: [],//泵送混凝土
                // concretetypeunList: [],//非泵送混凝土
                var data = this.formData.checkConcretesampleitems;

                var table = this.formData.checkConcretesampleresult;
                var totalData = [];
                var checkname = [
                    "fParam1",
                    "fParam2",
                    "fParam3",
                    "fParam4",
                    "fParam5",
                    "fParam6",
                    "fParam7",
                    "fParam8",
                    "fParam9",
                    "fParam10",
                    "fParam11",
                    "fParam12",
                    "fParam13",
                    "fParam14",
                    "fParam15",
                    "fParam16",
                ];
                var alreadyData = []; //已填的测区
                for (var i = 0; i < data.length; i++) {
                    for (var j = 0; j < checkname.length; j++) {
                        totalData.push(data[i].fId);
                        if (data[i][checkname[j]] != "") {
                            alreadyData.push(data[i].fId);
                        }
                    }
                }
                var totalId = []; //所有测区Id
                data.map((item) => {
                    totalId.push(item.fId);
                });
                var totalIdIndex = []; //已填测区 index
                totalId.map((item, index) => {
                    alreadyData.map((i) => {
                        if (item == i) {
                            totalIdIndex.push(index);
                        }
                    });
                });
                let newData = alreadyData.filter(
                    (item, index) => alreadyData.indexOf(item) === index
                );

                // that.totalData.fTestnum = newData.length
                this.formData.fTestnum = newData.length; // 实测数量(测区)
                this.selecttTotalIdIndex = totalIdIndex; //已填测区 index
                var blankData = [];
                var rowData = []; //所有数据，不填补零
                var realArr = []; //每行真实数据
                for (var c = 0; c < data.length; c++) {
                    var rowDeatil = [];
                    var realData = []; //真实数据
                    for (var h = 0; h < checkname.length; h++) {
                        if (data[c][checkname[h]] != "") {
                            rowDeatil.push(data[c][checkname[h]]);
                            realData.push(data[c][checkname[h]]);
                        } else {
                            blankData.push(c);
                            rowDeatil.push("0");
                            // realData.push('0')
                        }
                    }

                    rowData.push({
                        data: rowDeatil,
                    });
                    realArr.push({
                        data: realData,
                    });
                }

                // 10个数，去掉三个最大数和三个最小数
                var drawData = []; // 10个数，去掉三个最大数和三个最小数
                for (var s = 0; s < realArr.length; s++) {
                    // // 数组对象排序
                    if (realArr[s].data.length == 16) {
                        var sortData = realArr[s].data.sort(function (a, b) {
                            return a - b;
                        });
                        drawData.push({
                            data: sortData.slice(3, 13),
                        });
                    } else {
                        drawData.push({
                            data: realArr[s].data,
                        });
                    }
                }
                // 10个数，去掉三个最大数和三个最小数
                // //实测平均回弹值Rm数组
                var angleNum = []; // 四舍五入
                var anglerealNum = []; //实测平均回弹值Rm数组
                var cgf = [];
                var hh = [];
                drawData.map((item) => {
                    var len = item.data.length;
                    var sum = 0;
                    for (var i = 0; i < len; i++) {
                        var num = item.data[i] - 0;
                        sum += num;
                    }
                    angleNum.push(sum / len);
                    anglerealNum.push(sum / len);
                    cgf.push((sum / len).toFixed(1));
                    hh.push((sum / len).toFixed(1));
                });

                anglerealNum.map((items, index) => {
                    var num = "fResult" + (index + 1);
                    if (!isNaN(items)) {
                        this.formData.checkConcretesampleresult[0][num] = items.toFixed(1);
                        if (table[1][num] == "" && this.formData.fSurface == "侧面") {
                            table[1][num] = "0°";
                            data[index].fDetectionangle = "0°";
                        } else if (
                            table[1][num] == "" &&
                            (this.formData.fSurface == "表面" ||
                                this.formData.fSurface == "底面")
                        ) {
                            table[1][num] = "90°";
                            data[index].fDetectionangle = "90°";
                        }
                    } else {
                        this.formData.checkConcretesampleresult[0][num] = "";
                        this.formData.checkConcretesampleresult[1][num] = "";
                        this.formData.checkConcretesampleresult[2][num] = "";
                        this.formData.checkConcretesampleresult[3][num] = "";
                        this.formData.checkConcretesampleresult[4][num] = "";
                        this.formData.checkConcretesampleresult[5][num] = "";
                        this.formData.checkConcretesampleresult[6][num] = "";
                        this.formData.checkConcretesampleresult[7][num] = "";

                        table[1][num] = "";
                        data[index].fDetectionangle = "";
                    }
                });

                this.formData.checkConcretesampleitems = data;
                this.formData.checkConcretesampleresult = table;

                // detectionList
                // //实测平均回弹值Rm数组

                this.RmData = anglerealNum; //实测平均回弹值Rm
                this.calculationData(
                    this.RmData,
                    this.formData.checkConcretesampleresult
                );
                // 检测角度回弹值修正值
            }
        },
        fIstrueChange(text) {
            this.$refs[text].style.border = "none";
        },
        calculationData(RmData, data) {
            var numData = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
            if (this.formData.fDirection == "非水平方向") {
                // 二、检测角度回弹值修正值
                var angleData = []; //所有角度，未填按'''
                numData.map((item, index) => {
                    var num = "fResult" + (index + 1);

                    angleData.push(data[1][num]);
                });

                // angleData.map((item, index) => {
                //   if(item)
                //   if (item != '') {
                //     // data[1][num]
                //   }
                // })
                // 遍历angleData,得到对应index
                var angleNumBer = [];
                for (var i = 0; i < angleData.length; i++) {
                    if (angleData[i] == "90°") {
                        angleNumBer.push("0");
                    } else if (angleData[i] == "60°") {
                        angleNumBer.push("1");
                    } else if (angleData[i] == "45°") {
                        angleNumBer.push("2");
                    } else if (angleData[i] == "30°") {
                        angleNumBer.push("3");
                    } else if (angleData[i] == "-30°") {
                        angleNumBer.push("4");
                    } else if (angleData[i] == "-45°") {
                        angleNumBer.push("5");
                    } else if (angleData[i] == "-60°") {
                        angleNumBer.push("6");
                    } else if (angleData[i] == "-90°") {
                        angleNumBer.push("7");
                    } else if (angleData[i] == "") {
                        angleNumBer.push("");
                    }
                }
                // 处理实测平均回弹值Rm值
                // 大于等于20，小于等于50
                var angleList = [];
                var dc = [];
                for (var ii = 0; ii < RmData.length; ii++) {
                    if (RmData[ii] < 20) {
                        dc[ii] = 20;
                    } else if (RmData[i] > 50) {
                        dc[ii] = 50;
                    } else if (RmData[i] == "") {
                        dc[ii] = "";
                    } else {
                        dc[ii] = RmData[ii].toFixed(0);
                    }

                    // 对应平均回弹值的所有检测角度
                    angleList.push({
                        data: this.detectionList[dc[ii]],
                    });
                }

                // 根据对应的角度对应值及实测平均回弹值找检测角度回弹值修正值
                var corrected = []; //检测角度回弹值修正值

                for (var j = 0; j < angleList.length; j++) {
                    var ff;
                    if (angleList[j].data != undefined) {
                        for (var ih = 0; ih < angleList[j].data.length; ih++) {
                            ff = angleList[j].data;
                        }
                        corrected.push(ff[angleNumBer[j]]);
                    } else {
                        corrected.push("");
                    }
                }
                // 将检测角度回弹值修正值插入this.formData.checkConcretesampleresult数组
                corrected.map((item, i) => {
                    var num = "fResult" + (i + 1);
                    if (item != "") {
                        this.formData.checkConcretesampleresult[2][num] = item;
                    }
                });
                // 检测角度回弹值修正值
                // 三、检测角度修正后回弹值
                var reviseAngleNum = [];
                RmData.map((item, i) => {
                    var num = "fResult" + (i + 1);
                    if (!isNaN(item)) {
                        reviseAngleNum.push(item - 0 + (corrected[i] - 0));
                        this.formData.checkConcretesampleresult[3][num] = (
                            item -
                            0 +
                            (corrected[i] - 0)
                        ).toFixed(1);
                    } else {
                        reviseAngleNum.push("");
                    }
                });

                // 检测角度修正后回弹值
                //  四、浇筑面回弹值修正值
                var PouringSurfaceFalg;
                if (this.formData.fSurface == "表面") {
                    PouringSurfaceFalg = 0;
                } else {
                    PouringSurfaceFalg = 1;
                }
                var reviseAngleNums = [];
                var PouringSurfaceList = [];
                for (var iv = 0; iv < reviseAngleNum.length; iv++) {
                    if (reviseAngleNum[iv] != "") {
                        if (reviseAngleNum[iv] < 20) {
                            reviseAngleNums[iv] = 20;
                        } else if (reviseAngleNum[iv] > 50) {
                            reviseAngleNums[iv] = 50;
                        } else {
                            reviseAngleNums[iv] = (reviseAngleNum[iv] - 0).toFixed(0);
                        }
                    } else {
                        reviseAngleNums[iv] = "";
                    }
                    // 对应检测角度修正后回弹值的浇筑面回弹值修正值
                    PouringSurfaceList.push({
                        data: this.surfaceList[reviseAngleNums[iv]],
                    });
                }

                var PouringSurface = []; //检测角度回弹值修正值
                for (var jj = 0; jj < PouringSurfaceList.length; jj++) {
                    var ll;
                    if (PouringSurfaceList[jj].data != undefined) {
                        for (var iu = 0; iu < PouringSurfaceList[jj].data.length; iu++) {
                            ll = PouringSurfaceList[jj].data;
                        }
                        PouringSurface.push(ll[PouringSurfaceFalg]);
                    } else {
                        PouringSurface.push("");
                    }
                }
                // 将浇筑面回弹值修正值插入this.formData.checkConcretesampleresult数组
                PouringSurface.map((item, i) => {
                    var num = "fResult" + (i + 1);
                    if (item != "") {
                        this.formData.checkConcretesampleresult[4][num] = item;
                    }
                });
                // 浇筑面回弹值修正值
                // 五、修正后回弹平均值
                var modifiedMean = [];
                reviseAngleNum.map((item, i) => {
                    var num = "fResult" + (i + 1);
                    if (item != "") {
                        modifiedMean.push((item - 0 + (PouringSurface[i] - 0)).toFixed(1));
                        this.formData.checkConcretesampleresult[5][num] = (
                            item -
                            0 +
                            (PouringSurface[i] - 0)
                        ).toFixed(1);
                    } else {
                        this.formData.checkConcretesampleresult[5][num] = "";
                        modifiedMean.push("");
                    }
                });
                // 五、修正后回弹平均值
                // 浇筑面回弹值修正值
            } else if (this.formData.fDirection == "水平方向") {
                RmData.map((item, i) => {
                    var num = "fResult" + (i + 1);
                    if (!isNaN(item)) {
                        this.formData.checkConcretesampleresult[5][num] = item.toFixed(1);
                    }
                    this.formData.checkConcretesampleresult[2][num] = "";
                    this.formData.checkConcretesampleresult[3][num] = "";
                    this.formData.checkConcretesampleresult[4][num] = "";
                });
            }

            // 六、碳化深度dm(mm)
            // 六、碳化深度dm(mm)

            //七 强度换算值(MPa)
            var Carbonizationdepth = [];
            numData.map((item, i) => {
                var num = "fResult" + (i + 1);
                Carbonizationdepth.push(data[6][num]);
            });

            var reallCarbonizationdepth = [];
            var reallCarbonizationv = [];
            RmData.map((item, index) => {
                //获取有实测平均回弹值Rm，且碳化深度dm(mm)不为空的数据
                if (!isNaN(item)) {
                    reallCarbonizationdepth.push(Carbonizationdepth[index]);
                    reallCarbonizationv.push(Carbonizationdepth[index]);
                } else {
                    reallCarbonizationdepth.push("");
                }
            });
            var carbonationDepthNumBer = [];
            for (var ir = 0; ir < reallCarbonizationdepth.length; ir++) {
                if (reallCarbonizationdepth[ir] == "0.0") {
                    carbonationDepthNumBer.push("0");
                } else if (reallCarbonizationdepth[ir] == "0.5") {
                    carbonationDepthNumBer.push("1");
                } else if (reallCarbonizationdepth[ir] == "1.0") {
                    carbonationDepthNumBer.push("2");
                } else if (reallCarbonizationdepth[ir] == "1.5") {
                    carbonationDepthNumBer.push("3");
                } else if (reallCarbonizationdepth[ir] == "2.0") {
                    carbonationDepthNumBer.push("4");
                } else if (reallCarbonizationdepth[ir] == "2.5") {
                    carbonationDepthNumBer.push("5");
                } else if (reallCarbonizationdepth[ir] == "3.0") {
                    carbonationDepthNumBer.push("6");
                } else if (reallCarbonizationdepth[ir] == "3.5") {
                    carbonationDepthNumBer.push("7");
                } else if (reallCarbonizationdepth[ir] == "4.0") {
                    carbonationDepthNumBer.push("8");
                } else if (reallCarbonizationdepth[ir] == "4.5") {
                    carbonationDepthNumBer.push("9");
                } else if (reallCarbonizationdepth[ir] == "5.0") {
                    carbonationDepthNumBer.push("10");
                } else if (reallCarbonizationdepth[ir] == "5.5") {
                    carbonationDepthNumBer.push("11");
                } else if (reallCarbonizationdepth[ir] == "≥6.0") {
                    carbonationDepthNumBer.push("12");
                } else if (reallCarbonizationdepth[ir] == "") {
                    carbonationDepthNumBer.push("");
                }
            }
            // 判断测区强度换算表，
            var AverageArr = []; //修正后回弹平均值
            numData.map((item, i) => {
                var num = "fResult" + (i + 1);
                AverageArr.push(this.formData.checkConcretesampleresult[5][num]);
            });

            var newAverageArr = []; //修正后回弹平均值(修正值自我)
            var correctedAveraged = []; //强度换算值(MPa)数组
            var correctedAveragedData = [];
            if (this.formData.fConcretetype == "泵送混凝土") {
                // 大于等于18.6，小于等于52.8
                var correctedAverageList = [];
                for (var id = 0; id < AverageArr.length; id++) {
                    if (AverageArr[id] != "") {
                        if (AverageArr[id] - 0 < 18.6) {
                            newAverageArr[id] = 18.6;
                        } else if (AverageArr[id] - 0 > 52.8) {
                            newAverageArr[id] = 52.8;
                        } else {
                            newAverageArr[id] = (AverageArr[id] - 0).toFixed(1);
                        }
                    } else {
                        newAverageArr[id] = "";
                    }
                    // 对应平均回弹值的所有换算强度
                    correctedAverageList.push({
                        data: this.concretetypeList[newAverageArr[id]],
                    });
                }
                for (var jb = 0; jb < correctedAverageList.length; jb++) {
                    var vf;
                    if (correctedAverageList[jb].data != undefined) {
                        for (var ik = 0; ik < correctedAverageList[jb].data.length; ik++) {
                            vf = correctedAverageList[jb].data;
                        }
                        if (vf[carbonationDepthNumBer[jb]] != undefined) {
                            correctedAveraged.push(vf[carbonationDepthNumBer[jb]]);
                            correctedAveragedData.push(vf[carbonationDepthNumBer[jb]]);
                        } else {
                            correctedAveraged.push("");
                            correctedAveragedData.push("");
                        }
                    } else {
                        correctedAveraged.push("");
                        correctedAveragedData.push("");
                    }
                }
                correctedAveraged.map((item, i) => {
                    var num = "fResult" + (i + 1);
                    if (item != "") {
                        this.formData.checkConcretesampleresult[7][num] = item;
                    }
                });
            } else if (this.formData.fConcretetype == "非泵送混凝土") {
                // 大于等于20.0，小于等于50.0
                var correctedAverageLists = [];
                for (var ids = 0; ids < AverageArr.length; ids++) {
                    if (AverageArr[ids] != "") {
                        if (AverageArr[ids] < 20.0) {
                            newAverageArr[ids] = "20.0";
                        } else if (AverageArr[ids] > 50.0) {
                            newAverageArr[ids] = "50.0";
                        } else {
                            newAverageArr[ids] = AverageArr[ids];
                        }
                    } else {
                        newAverageArr[ids] = "";
                    }
                    correctedAverageLists.push({
                        data: this.concretetypeunList[newAverageArr[ids]],
                    });
                }

                for (var jr = 0; jr < correctedAverageLists.length; jr++) {
                    var vfs;
                    if (correctedAverageLists[jr].data != undefined) {
                        for (var io = 0; io < correctedAverageLists[jr].data.length; io++) {
                            vfs = correctedAverageLists[jr].data;
                        }
                        if (vfs[carbonationDepthNumBer[jr]] != undefined) {
                            correctedAveraged.push(vfs[carbonationDepthNumBer[jr]]);
                            correctedAveragedData.push(vfs[carbonationDepthNumBer[jr]]);
                        } else {
                            correctedAveraged.push("");
                            correctedAveragedData.push("");
                        }
                    } else {
                        correctedAveraged.push("");
                        correctedAveragedData.push("");
                    }
                }
                correctedAveraged.map((item, i) => {
                    var num = "fResult" + (i + 1);
                    if (item != "") {
                        this.formData.checkConcretesampleresult[7][num] = item;
                    }
                });
            }
            // this.formData.checkConcretesampleresult.map()
            // 强度换算值(MPa)
            // 碳化深度dm(mm)

            var correctedAveragedNum = []; //处理强度换算值
            for (var ig = 0; ig < correctedAveragedData.length; ig++) {
                // /\D/g
                var str = correctedAveragedData[ig].replace(/[^\d.]/gi, "");
                correctedAveragedNum.push(str);
            }

            var correctedAveragedNumber = 0;
            for (i = 0; i < correctedAveragedNum.length; i++) {
                var num = correctedAveragedNum[i];

                correctedAveragedNumber += num - 0;
            }

            var correctedGetData = [];
            correctedAveragedNum.map((item) => {
                if (item != "") {
                    correctedGetData.push(item);
                }
            });
            var strengthConversionAverage; // 强度换算值平均值
            if (correctedGetData.length != 0) {
                strengthConversionAverage =
                    correctedAveragedNumber / correctedGetData.length; // 强度换算值平均值
            } else {
                strengthConversionAverage = 0;
            }
            //  强度换算值方差
            var strengthConversionNum = 0;
            // 强度换算值减去强度换算值平均值 的平方

            for (var ie = 0; ie < correctedGetData.length; ie++) {
                if (correctedGetData[ie] != "") {
                    strengthConversionNum += Math.pow(
                        correctedGetData[ie] - 0 - strengthConversionAverage.toFixed(2),
                        2
                    );
                }
            }

            const filtered = reallCarbonizationv.filter((item) => {
                return item !== null && typeof item !== "undefined" && item !== "";
            });

            if (filtered.length != 0) {
                //碳化深度dm(mm)数组不为空时
                var strengthAveraged = 0;
                if (correctedGetData.length != 0 && correctedGetData.length != 1) {
                    strengthAveraged =
                        strengthConversionNum / (correctedGetData.length - 1);
                }

                var strengthAveragedNum = Math.sqrt(strengthAveraged);
                this.formData.fStandarddeviation = strengthAveragedNum.toFixed(2);
                //  强度换算值方差

                // 混凝土强度推定值(MPa)

                if (this.formData.fTestnum - 0 < 10) {

                    // this.formData.fConcreteresult =
                    //   Math.min.apply(null, correctedAveragedNum) + "Mpa"; //当构件测区少于10个时
                    this.formData.fConcreteresult = correctedGetData[0];
                    for (var ifn = 1; ifn < correctedGetData.length; ifn++) {
                        this.formData.fConcreteresult = Math.min(
                            this.formData.fConcreteresult,
                            correctedGetData[ifn]
                        );
                    }
                    this.formData.fConcreteresult = this.formData.fConcreteresult + "Mpa";
                } else if (this.formData.fTestnum - 0 >= 10) {
                    //当构件测区不少于10个时
                    this.formData.fConcreteresult =
                        (
                            strengthConversionAverage -
                            this.formData.fStandarddeviation * 1.645
                        ).toFixed(1) + "Mpa";
                }
                for (var ia = 0; ia < correctedGetData.length; ia++) {
                    if (correctedGetData[ia] - 0 < 10.0) {
                        this.formData.fConcreteresult = "<10.0Mpa"; //当构件的测区强度值中有小于10.0MPa时
                    }
                    // else if ((this.formData.fTestnum - 0) < 10) {

                    //   this.formData.fConcreteresult =
                    //     Math.min.apply(null, correctedAveragedNum) + "Mpa"; //当构件测区少于10个时
                    // } else if ((this.formData.fTestnum - 0) >= 10) {
                    //   //当构件测区不少于10个时
                    //   this.formData.fConcreteresult =
                    //     (
                    //       strengthConversionAverage -
                    //       this.formData.fStandarddeviation * 1.645
                    //     ).toFixed(1) + "Mpa";
                    // }

                    this.Testresult[0] = {
                        fItemCode: null,
                        fItemName:
                            "经检测，该结构物回弹强度推定值" +
                            this.formData.fConcreteresult +
                            "。",
                    };

                    if (
                        this.formData.fTestresult != "" &&
                        this.formData.fTestresult !=
                        "经检测，该检测结果符合（判定依据）技术要求。"
                    ) {
                        this.formData.fTestresult =
                            "经检测，该结构物回弹强度推定值" +
                            this.formData.fConcreteresult +
                            "。";
                    }
                    // 混凝土强度推定值(MPa)
                }
            }
        },
        DirectionSelectId(item) {
            this.$refs.fDirection.style.border = "none";
            this.$refs.fSurface.style.border = "none";
            this.$refs.fDirection1.style.border = "none";
            this.$refs.fSurface1.style.border = "none";

            if (this.formData.fConcretetype != "" && this.formData.fDirection != "") {
                this.disabledText = false;
            } else {
                this.disabledText = true;
            }
            this.formData.fDirection = item.fItemName;
            if (item.fItemName == "非水平方向") {
                this.formData.fSurface = "表面";
                (this.angleData = [
                    {
                        value: "0",
                        label: "90°",
                    },
                    {
                        value: "1",
                        label: "60°",
                    },
                    {
                        value: "2",
                        label: "45°",
                    },
                    {
                        value: "3",
                        label: "30°",
                    },
                    {
                        value: "4",
                        label: "-30°",
                    },
                    {
                        value: "5",
                        label: "-45°",
                    },
                    {
                        value: "6",
                        label: "-60°",
                    },
                    {
                        value: "7",
                        label: "-90°",
                    },
                ]),
                    // selecttTotalIdIndex:[],//已填测区 index
                    this.selecttTotalIdIndex.map((i) => {
                        var num = "fResult" + (i + 1);
                        this.formData.checkConcretesampleresult[1][num] = "90°";
                    });

                this.Surface = [
                    {
                        fItemCode: null,
                        fItemName: "表面",
                    },
                    {
                        fItemCode: null,
                        fItemName: "底面",
                    },
                ];
            } else if (item.fItemName == "水平方向") {
                this.formData.fSurface = "侧面";
                (this.angleData = [
                    {
                        value: "1",
                        label: "0°",
                    },
                ]),
                    this.selecttTotalIdIndex.map((i) => {
                        var num = "fResult" + (i + 1);
                        this.formData.checkConcretesampleresult[1][num] = "0°";
                    });
                this.Surface = [
                    {
                        fItemCode: null,
                        fItemName: "侧面",
                    },
                ];
            }
            this.calculationData(
                this.RmData,
                this.formData.checkConcretesampleresult
            );
        },
        openDialogs(data, num) {
            if (num == 1) {
                window.open(
                    "http://1.14.19.236:8054/concreteScreen/App/upload/getExcelByConcreteSample.do?fId=" +
                    data.fId
                );
            } else if (num == 2) {
                window.open(
                    "http://1.14.19.236:8054/concreteScreen/App/upload/getExcelByConcreteSampleCode.do?fId=" +
                    data.fId
                );
            }
        },
        // 试验检测依据-获取试验依据，检测依据
        getCheckitemsList(num) {
            getCheckitemsList({
                modelType: num,
            })
                .then((res) => {
                    if (res.errcode == 0) {
                        if (num == 3) {
                            this.TestnoteData = res.data.checkitemsList; //回弹试验依据
                        } else if (num == 4) {
                            this.JudgetypeData = res.data.checkitemsList; //回弹判定依据
                        }
                    } else {
                        this.$message.error(res.msg);
                        return false;
                    }
                })
                .catch(() => {
                    return false;
                });
        },
        TestnoteSelectId(item) {
            //回弹试验依据
            this.$refs.fTestnote.style.border = "none";
            this.$refs.fTestnote1.style.border = "none";

            this.formData.fTestnote = item.fItemno;
        },
        JudgetypeSelectId(item) {
            //回弹判定依据
            this.$refs.fJudgetype.style.border = "none";
            this.$refs.fJudgetype1.style.border = "none";

            this.formData.fJudgetype = item.fItemno;
        },

        // 获取当前日期

        getDate() {
            var time = new Date();
            const y = time.getFullYear();

            var m = time.getMonth() + 1 + "";
            m = (m < 10 ? "0" : "") + m;

            var d = time.getDate() + "";
            d = (d < 10 ? "0" : "") + d;

            this.dateMo = `${y}-${m}-${d}`;
        },
        selectEquipmen() {
            this.$refs.fEquipmentname.style.border = "none";
            this.$refs.fEquipmentname1.style.border = "none";

            this.formData.fEquipmentname = "123";
        },
        // 主要仪器设备名称及编号
        getEquipment() {
            // this.dialogTableVisibleNn = true;
            // this.loadingDialogNn = true;
            this.getList.fUserid = this.userInfo.userId;
            // this.getList.modelType = "2";
            getMangEquipmentPageList({
                fCompanyid: this.getList.fCompanyid, //当前登录用户机构id
                keyWord: this.getList.keyWord, //设备名称模糊查询字段
                keyType: this.getList.keyType, //设备类型
            })
                .then((res) => {
                    if (res.errcode == 0) {
                        // this.loadingDialogNn = false;

                        var that = this;
                        // that.loading = false;
                        that.tableData1 = res.data.mangEquipmentList.list;

                        setTimeout(() => {
                            that.$nextTick(() => {
                                that.$refs.multipleTableZ.doLayout();
                            });
                        }, 200);
                    } else {
                        this.$message.error(res.msg);
                        return false;
                    }
                })
                .catch(() => {
                    return false;
                });
        },
        // 检测类型 - 根据当前登录用户获取检测类型
        getCheckTypeByUserList() {
            getCheckTypeByUserList({ companyId: this.getList.fCompanyid })
                .then((res) => {
                    if (res.errcode == 0) {
                        this.Checktype = res.data.Checktype;
                    } else {
                        this.$message.error("检测类型获取失败", res.msg);
                    }
                })
                .catch((error) => {
                    console.log("检测类型接口报错", error);
                });
        },
        // 检测类型 - change
        handleChangeSelectId(item) {
            this.formData.fChecktype = item.fItemName; //检测类型
            this.formData.fLeadercompanyfullname = item.fCompanyFullName; //检测单位全称
            this.formData.fLeadercompanyname = item.fCompanyName; //检测单位简称
            this.formData.fLeadercompanyid = item.fCompanyId; //检测单位id
            this.$refs.fChecktype.style.border = "none";
        },
        // 混凝土回弹业务监管-新增前获取报告接口
        addConcreteChecksample() {
            var that = this;
            addConcreteChecksample({ companyId: this.getList.fCompanyid })
                .then((res) => {
                    if (res.errcode == 0) {
                        var data = res.data.lrCheckConcretesample;
                        that.formData.fReportno = data.fReportno; //报告编号
                        that.formData.fSamplingno = data.fSamplingno; //样品编号
                        this.formDataSample.sampleNum = data.fSamplingno; //样品编号
                        that.formData.fMarkno = data.fMarkno; //记录编号
                        that.fMarkno = data.fMarkno; //记录编号
                        this.formData.checkConcretesampleitems =
                            data.checkConcretesampleitems; //测区集合
                        // this.Checktype = res.data.Checktype
                        this.formData.checkConcretesampleresult =
                            data.checkConcretesampleresult;
                    } else {
                        this.$message.error("新增前获取报告", res.msg);
                    }
                })
                .catch((error) => {
                    console.log("新增前获取报告接口报错", error);
                });
        },
        //表格生成编码
        // tableCode() {
        //   for (let index = 0; index < this.recordData.length; index++) {
        //     this.recordData[index].fCheckpointnumber = index + 1;
        //     this.recordData1[index].fCheckpointnumber = index + 11;
        //     this.reportTable[index].num = index + 1;
        //     this.reportTable1[index].num = index + 21;
        //   }
        // },
        modelType(e) {
            this.fId = "";
            if (e == "待办") {
                this.getList.modelType = "0";

                this.disabledText = false;
            } else {
                this.getList.modelType = "1";
                this.disabledText = true;
            }
            this.yj_searchForm(this.getList);
        },
        // 获取列表数据
        yj_searchForm(data) {
            this.loading = true;
            var that = this;
    // var id;
    //   if(data.fCompanyid!=''){
    //     id=data.fCompanyid
    //   }else {
    //     id=data.fprojectid
    //   }
            getConcreteChecksamplePageList(data)
                .then((res) => {
                    if (res.errcode == 0) {
                        that.loading = false;
                        that.tableData = res.data.checkConcretesampleList.list;

                        this.queryCriteriaData = res.data.checkConcretesampleList;
                        this.navigatepageNums =
                            this.queryCriteriaData.navigatepageNums.length;

                        setTimeout(() => {
                            that.$nextTick(() => {
                                that.$refs.multipleTableA.doLayout();
                            });
                        }, 200);
                    } else {
                        this.$message.error("获取列表数据", res.msg);
                        this.loading = false;
                    }
                })
                .catch((err) => {
                    console.log("获取列表数据接口报错", err);
                });
            // const { data: res } = await this.$http.post(
            //   "roadApi/getConcreteList.do",
            //   {
            //     companyId: id,
            //   }
            // );
        },

        //选工程划分新增- 列表
        engineering() {
            this.dialogTableVisibleDivide = true;
            this.loadingDialogDivide = true;
            this.fProjectpartid = null;
            this.fProjectpart = null;
            //选工程划分新增- 获取列表数据
            getConcreteProjectList({
                companyId: this.userInfo.companyId,
                userId: this.userInfo.userId,
            }).then((res) => {
                if (res.errcode == 0) {
                    this.loadingDialogDivide = false;
                    this.tableData5 = res.data.projectTree;
                    this.$nextTick(() => {
                        var that = this;
                        that.$refs.multipleTable.doLayout();
                    });
                } else {
                    this.$message.error(res.msg);
                    return false;
                }
            });
        },
        //选工程划分新增- 保存
        submit(num) {
            //

            if (this.diaProjectNum == 33) {
                // this.dialogTableVisible = true;
                this.edit(0);
            }
            if (num == 0) {
                if (this.rowFlag != "") {
                    this.dialogTableVisibleDivide = false;
                    this.formData.fProjecttypename = this.rowData.f_TreeName; //工程部位/用途名称
                    this.formData.fProjecttypeid = this.rowData.f_EnCode; //工程部位/用途id
                    this.formData.fConcretelevel = this.rowData.f_Note; //回弹设计值（混凝土回弹用）
                    this.$refs.fProjecttypename.style.border = "none";
                    this.$refs.fProjecttypename1.style.border = "none";
                    // this.edit(0);
                } else {
                    return this.$message.error("请选择符合标准的数据");
                }
            }
            // else if (this.diaProjectNum == 33) {

            //   this.dialogTableVisible = true;
            //   // this.edit(0)
            // }
            else {
                this.formData.fEquipmentname =
                    "设备编码:" +
                    this.rowZ.fEqptno +
                    ";" +
                    "设备名称:" +
                    this.rowZ.fEqptname;
                this.dialogTableVisibleNn = false;
            }
        },
        //选工程划分新增- 点击行
        getRowInfos(e) {
            // this.rowD = e;

            this.rowFlag = e.f_Note;
            this.rowData = e;
            // this.formData.fConcretelevel = e.f_Note
        },

        // 样品详情弹框
        sampleDetails() {
            if (this.getList.modelType == 0) {
                this.dialogTableVisibleSample = true;
            }
        },
        // //样品详情弹框- 全选
        // handleCheckAllChange(val) {
        //   this.sampleStatus = val ? cityOptions : [];
        // },
        handleCheckedCitiesChange(value) {
            // this.formDataSample.sampleStatus = value;
            let checkedCount = value.length;
            this.checkAll = checkedCount === this.cities.length;
            this.isIndeterminate =
                checkedCount > 0 && checkedCount < this.cities.length;
            this.formDataSample.sampleStatus = value;
        },
        //样品详情弹框- 保存
        submitFormSample() {
            this.$refs.formDataSample.validate((valid) => {
                if (valid) {
                    this.$refs.fSamplename.style.border = "none";
                    this.$refs.fSamplename1.style.border = "none";

                    this.formData.fSamplename = this.formDataSample.sampleName;
                    this.formData.fSamplespecs =
                        this.formDataSample.sampleStatus.join(",");
                    this.dialogTableVisibleSample = false;
                    this.sample =
                        "样品名称:" +
                        this.formDataSample.sampleName +
                        "; " +
                        "样品编号:" +
                        this.formDataSample.sampleNum +
                        "; " +
                        "样品状态:" +
                        this.formDataSample.sampleStatus +
                        "; ";
                } else {
                    this.$message.error("请填写必填项");
                    return false;
                }
            });
        },
        //样品详情弹框 -关闭
        resetFormSample() {
            this.dialogTableVisibleSample = false;
        },

        // 新增/编辑
        edit(num) {
            var alist = document.getElementsByClassName("bottom1_2");
            if (alist) {
                for (var idx = 0; idx < alist.length; idx++) {
                    var mya = alist[idx];
                    mya.style.border = "none";
                }
            }
            this.activeIndex = "1";
            this.formData = {
                fChecktype: "", //检测类型
                fId: "", //修改数据时传
                fProjectfullname: "", //工程名称全称
                fProjectname: "", //工程名称简称
                fProjectid: "", //工程名称id
                fCompanyfullname: "", //施工/委托单位全称
                fCompanyname: "", //施工/委托单位简称
                fCompanyid: "", //施工/委托单位id
                fLeadercompanyfullname: "", //检测单位全称
                fLeadercompanyname: "", //检测单位简称
                fLeadercompanyid: "", //检测单位id
                fProjecttypeid: "", //工程部位/用途id
                fProjecttypename: "", //工程部位/用途名称
                fSamplingno: "", //样品编号
                fSamplename: "", //样品名称
                fSamplespecs: "", //样品描述*
                fEquipmentname: "", //主要仪器设备及编号*
                fEquipmentid: "", //主要仪器设备及编号id*
                fTesttype: "温度：  ℃  湿度：  %", //试验条件*
                fMarkno: "", //记录编号*
                fReportdates: this.dateMo, //报告日期*
                fTestdates: this.dateMo, //试验检测日期*
                fTestnote: "", //检测依据*
                fJudgetype: "", //判定依据*
                fSpecimenage: "", //龄期(d)*
                fConcretelevel: "", //设计强度等级*
                fReportno: "", //报告编号*
                fIstrue: "", //是否合格*
                fTestresult: "", //检测结论*
                fNote: "", //附加说明*
                fConcretetype: "", //测区强度换算表*
                fTestnum: "", //实测数量(测区)*
                fDirection: "", //回弹测试方向*
                fStandarddeviation: "", //标准差S(MPa)*
                fSurface: "", //检测浇筑面*
                fConcreteresult: "", //混凝土强度推定值(MPa)*
                userId: "", //当前登录人id
                userName: "", //当前登录人姓名
                checkConcretesampleitems: [], //测区集合,
                checkConcretesampleresult: [], //计算结果集合
            };
            this.formData.userId = this.userInfo.userId;
            this.formData.userName = this.userInfo.realName;
            // 样品信息
            (this.formDataSample = {
                sampleName: null,
                sampleNum: null,
                sampleStatus: [],
            }),
                (this.checkedCities = []); //样品信息
            this.fEquipmentname = []; //清空主要仪器设备名称及编号
            this.sample = ""; //样品信息
            if (num == 0) {
                if (this.userInfo.companyId != "") {
                    this.disabledText = true;
                    // if (this.getList.modelType == 0) {
                    //   this.disabledText = false
                    // } else if (this.getList.modelType == 1) {
                    //   this.disabledText = true
                    // }
                    // 按检测记录新增
                    this.formData.fId = "";
                    this.addConcreteChecksample(); //  混凝土回弹业务监管-新增前获取报告接口
                    this.formData.fProjectid = this.userInfo.projectId; //工程名称id
                    this.formData.fProjectname = this.userInfo.projectName; //工程名称简称
                    this.formData.fProjectfullname = this.userInfo.projectName; //工程名称全称

                    // this.userInfo = JSON.parse(sessionStorage.getItem("GxEmbedded_userInfo"));
                    this.formData.fCompanyfullname = this.userInfo.companyFullName; //施工/委托单位全程
                    this.formData.fCompanyname = this.userInfo.companyName; //施工/委托单位简称
                    this.formData.fCompanyid = this.userInfo.companyId; //施工/委托单位id

                    if (this.diaProjectNum == 33) {
                        this.dialogText = "选工程划分新增 ";
                    } else {
                        this.dialogText = "按检测记录新增";
                    }

                    this.dialogTableVisible = true;
                } else {
                    return this.$message.error("该账号不能新增");
                }
            } else {
                // 编辑

                if (this.equipmentDetailId != null && this.equipmentDetailId != "") {
                    this.formData.fId = this.equipmentDetailId;
                    this.dialogText = "编辑";
                    this.dialogTableVisible = true;
                    this.loadingDialog = true;
                    this.recordData = [];
                    this.recordData1 = [];
                    getConcreteChecksampleByFid({ fId: this.equipmentDetailId })
                        .then((res) => {
                            if (res.errcode == 0) {
                                var that = this;
                                that.loadingDialog = false;
                                that.formData = res.data.lrCheckConcretesample;

                                // if (this.getList.modelType == 0) {
                                //   this.disabledText = false
                                // } else if (this.getList.modelType == 1) {
                                //   this.disabledText = true
                                // }

                                that.sample =
                                    "样品名称:" +
                                    that.formData.fSamplename +
                                    "; " +
                                    "样品编号:" +
                                    that.formData.fSamplingno +
                                    "; " +
                                    "样品状态:" +
                                    that.formData.fSamplespecs +
                                    "; ";
                                this.formDataSample.sampleName = this.formData.fSamplename; //样品名称

                                that.formDataSample.sampleNum = this.formData.fSamplingno;
                                that.formDataSample.sampleStatus = that.formData.fSamplespecs;
                                var arr = that.formDataSample.sampleStatus.split(",");
                                that.checkedCities = arr;
                                var idArr = this.formData.fEquipmentid.split(",");
                                var idData = [];
                                idArr.map((item) => {
                                    this.tableData1.map((it) => {
                                        if (item == it.fId) {
                                            idData.push(it);
                                        }
                                    });
                                });
                                this.fEquipmentname = Array.from(new Set(idData));

                                var data =
                                    res.data.lrCheckConcretesample.checkConcretesampleitems;
                                var table =
                                    res.data.lrCheckConcretesample.checkConcretesampleresult;

                                var totalData = [];
                                var checkname = [
                                    "fParam1",
                                    "fParam2",
                                    "fParam3",
                                    "fParam4",
                                    "fParam5",
                                    "fParam6",
                                    "fParam7",
                                    "fParam8",
                                    "fParam9",
                                    "fParam10",
                                    "fParam11",
                                    "fParam12",
                                    "fParam13",
                                    "fParam14",
                                    "fParam15",
                                    "fParam16",
                                ];
                                var alreadyData = []; //已填的测区
                                for (var i = 0; i < data.length; i++) {
                                    for (var j = 0; j < checkname.length; j++) {
                                        totalData.push(data[i].fId);
                                        if (data[i][checkname[j]] != "") {
                                            alreadyData.push(data[i].fId);
                                        }
                                    }
                                }
                                var totalId = []; //所有测区Id
                                data.map((item) => {
                                    totalId.push(item.fId);
                                });
                                var totalIdIndex = []; //已填测区 index
                                totalId.map((item, index) => {
                                    alreadyData.map((i) => {
                                        if (item == i) {
                                            totalIdIndex.push(index);
                                        }
                                    });
                                });
                                let newData = alreadyData.filter(
                                    (item, index) => alreadyData.indexOf(item) === index
                                );
                                this.formData.fTestnum = newData.length; // 实测数量(测区)
                                // this.selecttTotalIdIndex = totalIdIndex; //已填测区 index
                                var blankData = [];
                                var rowData = []; //所有数据，不填补零
                                var realArr = []; //每行真实数据
                                for (var c = 0; c < data.length; c++) {
                                    var rowDeatil = [];
                                    var realData = []; //真实数据
                                    for (var h = 0; h < checkname.length; h++) {
                                        if (data[c][checkname[h]] != "") {
                                            rowDeatil.push(data[c][checkname[h]]);
                                            realData.push(data[c][checkname[h]]);
                                        } else {
                                            blankData.push(c);
                                            rowDeatil.push("0");
                                            // realData.push('0')
                                        }
                                    }

                                    rowData.push({
                                        data: rowDeatil,
                                    });
                                    realArr.push({
                                        data: realData,
                                    });
                                }
                                // 10个数，去掉三个最大数和三个最小数
                                var drawData = []; // 10个数，去掉三个最大数和三个最小数
                                for (var s = 0; s < realArr.length; s++) {
                                    // // 数组对象排序
                                    if (realArr[s].data.length == 16) {
                                        var sortData = realArr[s].data.sort(function (a, b) {
                                            return a - b;
                                        });
                                        drawData.push({
                                            data: sortData.slice(3, 13),
                                        });
                                    } else {
                                        drawData.push({
                                            data: realArr[s].data,
                                        });
                                    }
                                }
                                var angleNum = []; // 四舍五入
                                var anglerealNum = []; //实测平均回弹值Rm数组
                                var cgf = [];
                                var hh = [];
                                drawData.map((item) => {
                                    var len = item.data.length;
                                    var sum = 0;
                                    for (var i = 0; i < len; i++) {
                                        var num = item.data[i] - 0;
                                        sum += num;
                                    }
                                    angleNum.push(sum / len);
                                    anglerealNum.push(sum / len);
                                    cgf.push((sum / len).toFixed(1));
                                    hh.push((sum / len).toFixed(1));
                                });

                                anglerealNum.map((items, index) => {
                                    var num = "fResult" + (index + 1);
                                    if (!isNaN(items)) {

                                        this.formData.checkConcretesampleresult[0][num] =
                                            items.toFixed(1);
                                        if (
                                            table[1][num] == "" &&
                                            this.formData.fSurface == "侧面"
                                        ) {
                                            table[1][num] = "0°";
                                            data[index].fDetectionangle = "0°";
                                        } else if (
                                            table[1][num] == "" &&
                                            (this.formData.fSurface == "表面" ||
                                                this.formData.fSurface == "底面")
                                        ) {
                                            table[1][num] = "90°";
                                            data[index].fDetectionangle = "90°";
                                        }
                                    } else {
                                        this.formData.checkConcretesampleresult[0][num] = "";
                                        this.formData.checkConcretesampleresult[1][num] = "";
                                        this.formData.checkConcretesampleresult[2][num] = "";
                                        this.formData.checkConcretesampleresult[3][num] = "";
                                        this.formData.checkConcretesampleresult[4][num] = "";
                                        this.formData.checkConcretesampleresult[5][num] = "";
                                        this.formData.checkConcretesampleresult[6][num] = "";
                                        this.formData.checkConcretesampleresult[7][num] = "";

                                        table[1][num] = "";
                                        data[index].fDetectionangle = "";
                                    }
                                });
                                this.formData.checkConcretesampleresult = table;
                                this.RmData = anglerealNum; //实测平均回弹值Rm
                                this.calculationData(
                                    this.RmData,
                                    this.formData.checkConcretesampleresult
                                );

                                // this.fEquipmentname
                            } else {
                                this.$message.error(res.msg);
                            }
                        })
                        .catch(() => {
                            return false;
                        });
                } else {
                    return this.$message.error("请先选择需要编辑的数据");
                }
            }
        },
        // 按检测记录新增
        handleSelect(key) {
            this.activeIndex = key;
        },
        changeProject() {
            if (this.getList.modelType == 0) {
                this.diaProjectNum = 22;
                // this.formData.fConcretelevel=
                this.engineering();
            }
        },
        // 选工程划分新增
        engineerings(num) {
            this.flagNum = 0;
            if (num == 0) {
                this.disabledText = true;
                this.disabl = false;
                this.edit(0);
            } else if (num == 1) {
                this.disabledText = false;
                this.disabl = false;
                this.edit(1);
            } else if (num == 2) {
                this.disabl = false;
                this.diaProjectNum = 33;
                this.engineering();
                this.disabledText = false;
            }
        },

        //主要仪器设备名称及编号- 点击行
        getRowInfoNn(e) {
            this.rowZ = e;
        },
        // 检测类型
        testType() { },

        // 保存
        submitForm() {
            var EquipmenData = [];
            var EquipmenId = [];

            this.fEquipmentname.map((item) => {
                EquipmenData.push(item.fEqptname + "/" + item.fEqptno);
                EquipmenId.push(item.fId);
            });
            this.formData.fEquipmentname = EquipmenData.join(",");
            this.formData.fEquipmentid = EquipmenId.join(",");
            // if (this.activeIndex == 1) {

            var textData = [
                "fChecktype",
                "fProjectfullname",
                "fProjecttypename",
                "fSamplename",
                "fTestdates",
                "fTesttype",
                "fTestnote",
                "fJudgetype",
                "fEquipmentname",
                "fConcretetype",
                "fDirection",
                "fSurface",
                "fIstrue",
                "fTestresult",
                "fSpecimenage",
            ];

            var newData = [];
            textData.map((item) => {
                if (this.formData[item] == "") {
                    newData.push(item);
                }
            });
            newData.map((item) => {
                if (item == "fProjecttypename") {
                    newData.push("fProjecttypename1");
                } else if (item == "fSamplename") {
                    newData.push("fSamplename1");
                } else if (item == "fTestnote") {
                    newData.push("fTestnote1");
                } else if (item == "fJudgetype") {
                    newData.push("fJudgetype1");
                } else if (item == "fEquipmentname") {
                    newData.push("fEquipmentname1");
                } else if (item == "fConcretetype") {
                    newData.push("fConcretetype1");
                } else if (item == "fDirection") {
                    newData.push("fDirection1");
                } else if (item == "fSurface") {
                    newData.push("fSurface1");
                }
            });
            //
            if (newData.length > 0) {
                newData.map((item) => {
                    this.$refs[item].style.border = "1px solid red";
                });
                this.$message.error("请填写必填项");
            } else {
                saveConcreteChecksample(this.formData).then((res) => {
                    if (res.errcode == 0) {
                        this.dialogTableVisible = false;
                        this.$message.success("保存成功");
                        this.yj_searchForm(this.getList);
                    } else {
                        this.$message.error(res.msg);
                    }
                });
            }
        },
        // 提交
        SubmitText(id) {
            if (id != "" && id != null) {
                this.loading = true;
                this.$confirm("是否继续提交?", "提示", {
                    confirmButtonText: "确定",
                    cancelButtonText: "取消",
                    type: "warning",
                })
                    .then(() => {
                        submitConcreteChecksample({
                            fId: id,
                            userId: this.userInfo.userId,
                            userName: this.userInfo.realName,
                        }).then((res) => {
                            if (res.errcode == 0) {
                                this.loading = false;
                                // this.reload();
                                this.yj_searchForm(this.getList);
                                this.$message.success("提交成功");
                            } else {
                                this.$message.error(res.msg);
                                // this.$message.error("提交失败");
                                return false;
                            }
                        });
                    })
                    .catch(() => {
                        this.loading = false;
                        this.$message("取消提交");
                    });
            } else {
                return this.$message.error("请先选择需要提交的数据");
            }
        },
        // 删除this.equipmentDetailId
        rowDelete(id) {
            if (id != "" && id != null) {
                this.loading = true;
                this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
                    confirmButtonText: "确定",
                    cancelButtonText: "取消",
                    type: "warning",
                })
                    .then(() => {
                        delConcreteChecksample({ fId: id }).then((res) => {
                            if (res.errcode == 0) {
                                this.loading = false;
                                // this.reload();
                                this.yj_searchForm(this.getList);
                                this.$message.success("删除成功");
                            } else {
                                this.$message.error(res.msg);
                                // this.$message.error("删除失败");
                                return false;
                            }
                        });
                    })
                    .catch(() => {
                        this.loading = false;
                        this.$message("取消删除");
                    });
            } else {
                return this.$message.error("请先选择需要删除的数据");
            }
        },
        // 关闭
        resetForm() {
            this.dialogTableVisible = false;
            // this.dialogTableVisibleDivide = false;
            // this.reload();
            this.yj_searchForm(this.getList);
        },
        resetForms() {
            // this.dialogTableVisibleDivide

            this.dialogTableVisibleDivide = false;

            // this.reload();
        },
        resetFormZ() {
            this.dialogTableVisibleNn = false;
        },
        // 点击当前行
        getRowInfo(e) {
            this.row = e;
            this.equipmentDetailId = e.fId;

            // this.fId = e.fId;
        },
        // 点击报告编码
        openDialog(row) {
            this.disabl = true;
            this.disabledText = true;
            this.equipmentDetailId = row.fId;
            this.edit(1);
            this.flagNum = 1;
        },
        // 点击当前行变色
        rowChange(val) {
            this.currentRow = val;
        },

        // 获取页面容器高度
        getHeight() {
            var h = document.documentElement.clientHeight; //获取页面可见高度
            // var w = document.documentElement.clientWidth; //获取页面可见高度
            this.dialogHeight = h * 0.5 + "px";

            this.dialogHeights = h * 0.88 + "px";
            this.dialogHeightSample = h * 0.4 + "px";
        },
    },
};
</script>
  
<style scoped>
.steelSheet header {
    text-align: center;
    font-size: 20px;
    line-height: 18px;
    margin: 0 0 5px 0;
}

.steelSheet .el-table__header-wrapper {
    line-height: 40px;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1px;
}

.steelSheet .title {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    line-height: 20px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.title_Name {
    margin-right: 10px;
    width: 65%;
    display: flex;
}

.title_Name .title_input_text {
    width: 140px;
    line-height: 40px;
}

.title_record .title_input_text {
    width: 100px;
}

.title_input {
    width: 28%;
    display: flex;
    line-height: 40px;
}

.title_input .title_input_text {
    width: 70px !important;
}

.title_input_con {
    flex: 1;
    display: flex;
    align-items: center;
    font-family: "Regular";
}

.title_input_con .el-textarea__inner {
    line-height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none;
}

.steelSheet .el-dialog {
    margin: auto !important;
    width: 950px !important;
}

.steelSheet .dialogBody {
    padding: 0 10px !important;
}

.table_recordSheet {
    width: 100%;
    height: 370px;
    display: flex;
    margin-bottom: 1px;
}

.table_recordSheetf {
    width: 100%;
    height: 267px;
    display: flex;
    margin-bottom: 1px;
}

.table_recordSheetfv {
    width: 100%;
    height: 193px;
    /* height: 400px; */
    display: flex;
    margin-bottom: 1px;
}

.table_recordSheetfvs {
    width: 100%;
    height: 334px;
    /* height: 400px; */
    display: flex;
    margin-bottom: 1px;
}

.table_report {
    height: 337px;
}

.steelSheet .el-table .cell {
    text-align: center;
    height: auto !important;
    line-height: normal !important;
    color: #606266 !important;
}

.steelSheet .cell {
    overflow: visible !important;
    white-space: normal !important;
}

.steelSheet .el-table__cell {
    box-sizing: border-box !important;
    border-right: 1px solid #ccc;
    background: #f5f7fa !important;
}

.el-table th.el-table__cell>.cell {
    /* 所有表头标题居中 */
    text-align: center;
}

.steelSheet .el-table th.el-table__cell>.cell {
    padding: 0 11px;
}

.reportSheet .el-table th.el-table__cell>.cell {
    padding: 0 10px;
}

.recordSheet .el-table__body-wrapper {
    height: 0;
}

.recordSheet_box {
    box-sizing: border-box;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    display: flex;
    height: 15px;
    line-height: 15px;
}

.table369 .recordSheet_box {
    height: 37px !important;
    line-height: 37px !important;
}

.recordSheet_boxf {
    box-sizing: border-box;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    display: flex;
    height: 20px;
    line-height: 20px;
}

.recordSheet_box_1 {
    box-sizing: border-box;
    width: 47px;
    height: 100%;
    border-right: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7fa;
}

.recordSheet_box_2 {
    box-sizing: border-box;
    width: 69px;
    height: 100%;
    border-right: 1px solid #ccc;
}

.recordSheet_box_3 {
    box-sizing: border-box;
    width: 70px;
    height: 100%;
    border-right: 1px solid #ccc;
}

.recordSheet_box_3f {
    box-sizing: border-box;
    width: 55px;
    height: 100%;
    border-right: 1px solid #ccc;
}

.recordSheet_box_3f .el-input {
    width: 54px !important;
}

.recordSheet_box_3fv {
    box-sizing: border-box;
    width: 77px;
    height: 100%;
    border-right: 1px solid #ccc;
}

.recordSheet_box_3fv .el-input {
    width: 76px !important;
}

.recordSheet_box_1f {
    width: 48px !important;
    /* width: 150px; */
    box-sizing: border-box;
    height: 100%;
    border-right: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7fa;
}

.recordSheet_box_1f .el-input {
    width: 48px !important;
}

.recordSheet_box_1fv {
    /* width: 47px; */
    width: 158px !important;
    box-sizing: border-box;
    height: 100%;
    border-right: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7fa;
}

.recordSheet_box_1fv .el-input {
    width: 150px !important;
}

.recordSheet_box_1fvs {
    /* width: 47px; */
    width: 158px;
    box-sizing: border-box;
    height: 100%;
    border-right: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7fa;
}

.recordSheet_box_1fvs .el-input {
    width: 157px !important;
}

.recordSheet_box_4 {
    box-sizing: border-box;
    width: 67.75px;
    height: 100%;
    background: #f5f7fa;
}

.row1_6 {
    background: #f5f7fa;
}

.recordSheet_box .el-input {
    height: 100%;
    width: 100%;
}

.steelSheet .el-input__inner {
    margin: 0;
    padding: 0 !important;
    /* text-align: center; */
    height: 88% !important;
    line-height: 13px;
    font-size: 12px;
    box-sizing: border-box;
    border: none;
    font-family: "Regular";
}

.recordSheet_box_3f .el-input__inner,
.recordSheet_box_1f .el-input__inner,
.recordSheet_box_1fv .el-input__inner {
    padding: 0 !important;
}

.steelSheet header {
    text-align: center;
    font-size: 20px;
    line-height: 18px;
    margin: 0 0 5px 0;
}

.printTable {
    display: flex;
    justify-content: end;
    align-items: center;
    background: #fff;
    width: 100%;
    margin-right: 17px;
}

header .printTable {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 63px;
    height: 23px;
}

header .printTable .el-button {
    height: 21px !important;
}

.bottom_box,
.top_box {
    width: 100%;
    font-size: 12px !important;
    box-sizing: border-box;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    display: flex;
    /* height: 20px; */
    line-height: 20px;
    box-sizing: border-box;
}

.bottom_box,
.top_boxh {
    height: 4%;
    line-height: 40px;
}

.top_box {
    border-top: 1px solid #ccc;
}

.top_1 .bottom1_1 {
    width: 116px !important;
    min-width: 116px !important;
    white-space: pre-wrap;
}

.top_1 .bottom1_2 {
    flex: 1;
    border: none;
    font-family: "Regular";
}

.top_2 {
    height: 40px;
}

.top_box .top_4 {
    width: 50%;
    height: 100%;
    display: flex;
    box-sizing: border-box;
}

.top_5 .bottom1_1 {
    width: 465px !important;
}

.top_3 .bottom1_1 {
    width: 186px !important;
}

.bottom_box {
    border-bottom: 1px solid #ccc;
}

.bottom_box .el-input__inner {
    height: 87% !important;
}

.steelSheet .bottom1_1 {
    box-sizing: border-box;
    width: 186px;
    height: 100%;
    border-right: 1px solid #ccc;
    text-align: center;
    line-height: 40px;
    position: relative;
}

.top_boxh .bottom1_1 {
    line-height: 40px;
}

.bottom1_1 span {
    text-decoration: overline;
}

.steelSheet .bottom1_2 {
    box-sizing: border-box;
    /* padding: 0 0 0 10px !important; */
    width: 139px;
    height: 100%;
    line-height: 40px;
    display: flex;
    align-items: center;
}

.reportSheet .bottom1_2 {
    width: 92px;
}

.steelSheet .bottom1_3 {
    /* box-sizing: border-box; */
    width: 137.75px;
    height: 100%;
    border-right: 1px solid #ccc;
    text-align: center;
    line-height: 40px;
}

.reportSheet .bottom1_3 {
    width: 186px;
}

.steelSheet .bottom1_4 {
    box-sizing: border-box;
    width: 117px;
    height: 100%;
    line-height: 40px;
    border-right: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reportSheet .bottom1_4 {
    width: 93px;
}

.steelSheet .bottom1_5 {
    box-sizing: border-box;
    width: 209px;
    height: 100%;
    border-right: 1px solid #ccc;
    text-align: center;
    line-height: 40px;
}

.reportSheet .bottom1_5 {
    width: 185px;
}

.steelSheet .bottom1_6 {
    box-sizing: border-box;
    width: 137px;
    height: 100%;
    line-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.steelSheet .box2 {
    height: 40px;
    line-height: 40px;
}

.steelSheet .box2 .bottom1_1 {
    line-height: 40px;
}

.steelSheet .box2 .bottom1_2 {
    line-height: 40px;
    flex: 1;
    border: none;
}

.steelSheet .box3 .bottom1_2 {
    flex: 1;
    border: none;
}

.steelSheet .el-table__header-wrapper {
    line-height: 40px;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1px;
}

.steelSheet .title {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    line-height: 40px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.title_Name {
    margin-right: 10px;
    width: 65%;
    display: flex;
}

.title_Name .title_input_text {
    width: 140px;
    line-height: 40px;
}

.title_record .title_input_text {
    width: 100px;
}

.title_input {
    width: 28%;
    display: flex;
    line-height: 40px;
}

.title_input .title_input_text {
    width: 70px !important;
}

.title_input_con {
    flex: 1;
    display: flex;
    align-items: center;
    font-family: "Regular";
}

.title_input_con .el-textarea__inner {
    line-height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none;
}

.steelSheet .el-dialog {
    margin: auto !important;
    width: 950px !important;
}

.steelSheet .dialogBody {
    padding: 0 10px !important;
}

.table_recordSheet {
    width: 100%;
    height: 370px;
    display: flex;
    margin-bottom: 1px;
}

.table_recordSheetf {
    width: 100%;
    height: 267px;
    display: flex;
    margin-bottom: 1px;
}

.table_recordSheetfv {
    width: 100%;
    height: 193px;
    /* height: 400px; */
    display: flex;
    margin-bottom: 1px;
}

.table_recordSheetfvs {
    width: 100%;
    height: 334px;
    /* height: 400px; */
    display: flex;
    margin-bottom: 1px;
}

.table_report {
    height: 337px;
}

.steelSheet .el-table .cell {
    text-align: center;
    height: auto !important;
    line-height: normal !important;
    color: #606266 !important;
}

.steelSheet .cell {
    overflow: visible !important;
    white-space: normal !important;
}

.steelSheet .el-table__cell {
    box-sizing: border-box !important;
    border-right: 1px solid #ccc;
    background: #f5f7fa !important;
}

.el-table th.el-table__cell>.cell {
    /* 所有表头标题居中 */
    text-align: center;
}

.steelSheet .el-table th.el-table__cell>.cell {
    padding: 0 11px;
}

.reportSheet .el-table th.el-table__cell>.cell {
    padding: 0 10px;
}

.recordSheet .el-table__body-wrapper {
    height: 0;
}

.recordSheet_box {
    box-sizing: border-box;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    display: flex;
    height: 15px;
    line-height: 15px;
}

.table369 .recordSheet_box {
    height: 37px !important;
    line-height: 37px !important;
}

.recordSheet_boxf {
    box-sizing: border-box;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    display: flex;
    height: 20px;
    line-height: 20px;
}

.recordSheet_box_1 {
    box-sizing: border-box;
    width: 47px;
    height: 100%;
    border-right: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7fa;
}

.recordSheet_box_2 {
    box-sizing: border-box;
    width: 69px;
    height: 100%;
    border-right: 1px solid #ccc;
}

.recordSheet_box_3 {
    box-sizing: border-box;
    width: 70px;
    height: 100%;
    border-right: 1px solid #ccc;
}

.recordSheet_box_3f {
    box-sizing: border-box;
    width: 55px;
    height: 100%;
    border-right: 1px solid #ccc;
}

.recordSheet_box_3f .el-input {
    width: 54px !important;
}

.recordSheet_box_3fv {
    box-sizing: border-box;
    width: 77px;
    height: 100%;
    border-right: 1px solid #ccc;
}

.recordSheet_box_3fv .el-input {
    width: 76px !important;
}

.recordSheet_box_1f {
    width: 48px !important;
    /* width: 150px; */
    box-sizing: border-box;
    height: 100%;
    border-right: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7fa;
}

.recordSheet_box_1f .el-input {
    width: 48px !important;
}

.recordSheet_box_1fv {
    /* width: 47px; */
    width: 158px !important;
    box-sizing: border-box;
    height: 100%;
    border-right: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7fa;
}

.recordSheet_box_1fv .el-input {
    width: 150px !important;
}

.recordSheet_box_1fvs {
    /* width: 47px; */
    width: 158px;
    box-sizing: border-box;
    height: 100%;
    border-right: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f7fa;
}

.recordSheet_box_1fvs .el-input {
    width: 157px !important;
}

.recordSheet_box_4 {
    box-sizing: border-box;
    width: 67.75px;
    height: 100%;
    background: #f5f7fa;
}

.row1_6 {
    background: #f5f7fa;
}

.recordSheet_box .el-input {
    height: 100%;
    width: 100%;
}

.steelSheet .el-input__inner {
    margin: 0;
    padding: 0 !important;
    /* text-align: center; */
    height: 88% !important;
    line-height: 13px;
    font-size: 12px;
    box-sizing: border-box;
    border: none;
    font-family: "Regular";
}

.recordSheet_box_3f .el-input__inner,
.recordSheet_box_1f .el-input__inner,
.recordSheet_box_1fv .el-input__inner {
    padding: 0 !important;
}

.bottom_box,
.top_box {
    width: 100%;
    font-size: 12px !important;
    box-sizing: border-box;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    display: flex;
    /* height: 20px; */
    line-height: 20px;
    box-sizing: border-box;
}

.bottom_box,
.top_boxh {
    height: 40px;
    line-height: 40px;
}

.top_box {
    border-top: 1px solid #ccc;
}

.top_1 .bottom1_1 {
    width: 116px !important;
    min-width: 116px !important;
    white-space: pre-wrap;
}

.top_1 .bottom1_2 {
    flex: 1;
    border: none;
    font-family: "Regular";
}

.top_2 {
    height: 40px;
}

.top_box .top_4 {
    width: 50%;
    height: 100%;
    display: flex;
    box-sizing: border-box;
}

.top_5 .bottom1_1 {
    width: 465px !important;
}

.top_3 .bottom1_1 {
    width: 186px !important;
}

.bottom_box {
    border-bottom: 1px solid #ccc;
}

.bottom_box .el-input__inner {
    height: 87% !important;
}

.steelSheet .bottom1_1 {
    box-sizing: border-box;
    width: 186px;
    height: 100%;
    border-right: 1px solid #ccc;
    text-align: center;
    /* line-height: 20px; */
    position: relative;
}

.top_boxh .bottom1_1 {
    line-height: 40px;
}

.bottom1_1 span {
    text-decoration: overline;
}

.steelSheet .bottom1_2 {
    box-sizing: border-box;
    width: 100%;
    /* padding: 0 0 0 10px !important; */
    /* width: 139px; */
    height: 100%;
    /* line-height: 20px; */
    display: flex;
    align-items: center;
}

.reportSheet .bottom1_2 {
    width: 92px;
}

.steelSheet .bottom1_3 {
    /* box-sizing: border-box; */
    width: 137.75px;
    height: 100%;
    border-right: 1px solid #ccc;
    text-align: center;
    line-height: 20px;
}

.reportSheet .bottom1_3 {
    width: 186px;
}

.steelSheet .bottom1_4 {
    box-sizing: border-box;
    width: 117px;
    height: 100%;
    line-height: 20px;
    border-right: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom1_2 /deep/.el-select {

    width: 100%;
}

.bottom1_2 /deep/.el-input__inner {
    border-radius: 0;
}

.bottom1_2 .yjxa-date-editor.yjxa-input,
.bottom1_2 .yjxa-date-editor.yjxa-input__inner {
    width: 100%;
}

/* .bottom1_2 /deep/.el-input__inner {
    border: none;
  } */



.reportSheet .bottom1_4 {
    width: 93px;
}

.steelSheet .bottom1_5 {
    box-sizing: border-box;
    width: 209px;
    height: 100%;
    border-right: 1px solid #ccc;
    text-align: center;
    line-height: 20px;
}

.reportSheet .bottom1_5 {
    width: 185px;
}

.steelSheet .bottom1_6 {
    box-sizing: border-box;
    width: 137px;
    height: 100%;
    line-height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.steelSheet .box2 {
    height: 40px;
    line-height: 40px;
}

.steelSheet .box2 .bottom1_1 {
    line-height: 40px;
}

.steelSheet .box2 .bottom1_2 {
    line-height: 40px;
    flex: 1;
    border: none;
}

.steelSheet .box3 .bottom1_2 {
    flex: 1;
    border: none;
}

.Sample_dialog .el-form-item__content {
    margin-left: 65px !important;
}

.Sample_dialog .dialogBody {
    padding: 0 10px !important;
}

.table_report .recordSheet_box .recordSheet_box_1 {
    width: 93px;
}

.table_end {
    border-right: none !important;
}

.center_text .el-input__inner {
    text-align: center;
}

.bottom1_1,
.bottom1_3,
.bottom1_5 {
    background-color: #f5f7fa;
}

.table_recordSheet .el-table--border,
.table_recordSheet .el-table--group {
    border: none !important;
}

.bottom1_2 .el-input_icon {
    line-height: 22px;
}

/* 混凝土 */

.title_Name .el-select {
    width: 30%;
    line-height: 40px;
}

.bottom1_2 .el-input__prefix,
.bottom1_2 .el-input__suffix,
.title_record .el-input__suffix,
.hhgy .el-input__suffix,
.recordSheet_box_3fv .el-input__suffix {
    display: none;
}

.hhgy .el-select>.el-input {
    height: 40px;
    line-height: 40px;
}

.hgjk {
    display: flex;
    /* border-bottom: 1px solid #ccc; */
}

.hgjk .el-select {
    width: 100% !important;
    /* padding-left: 10px; */
    /* flex: 1 !important; */
}

.recordSheet_box_3fv .el-input__inner {
    text-align: center;
}

.hbhg .el-input {
    /* padding-left: 10px; */
}

.selectCenter .el-input__inner {
    text-align: center;
}

.big_dialog .el-dialog {
    min-width: 950px !important;
}

#dialogHuitan2 .el-dialog {
    width: 860px !important;
}

.fvisible .el-dialog__body {
    padding: 0 20px 30px;
}

.fvisibles .el-dialog__body {
    padding: 0 20px 30px;
}

/* 混凝土 */
.printTables {
    background: #fff;
    display: flex;
    justify-content: end;
    padding: 5px;
    margin-top: 10px;
}

a {
    text-decoration: none;
    color: #000;
}

.dialogBody {
    padding: 3px 20px;
    height: 80%;
    overflow-y: auto;
}

.pageFlagText {
    color: #171a1d;
    font-size: 16px;
}</style>